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

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

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -