swift3 - Alamofire Swift 3 - Extra Argument in Call Error -


xcode forced me update old swift 2.3 syntax 3.0. alamofire 4.0.1. when trying build project fails error argument in call.

alamofire.request(url, .get, parameters: ["part":"snippet,contentdetails", "key": api_key,"maxresults":50, "channelid":channelid], encoding: parameterencoding.url, headers: nil).responsejson { (response) in

how fix issue. shows in on 6 files in project. identical error.

do call below

alamofire.request(url,                    parameters: ["part":"snippet,contentdetails", "key": api_key,"maxresults":50, "channelid":channelid],                    encoding: urlencoding.default)          .responsejson { (response) in } 

i hope work... more info, can check out link https://github.com/alamofire/alamofire#get-request-with-url-encoded-parameters


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -