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
Post a Comment