swift - Alamofire: Define order of parameters -


i define 2 parameter need attach url data alamofire in swift 3:

let parameters: parameters = ["id": string(mid), "getfunction": "w"]      alamofire.request("https://myurl.tld", parameters: parameters).response { response in         print("request: \(response.request)")         print("response: \(response.response)")         print("error: \(response.data)") 

in understanding url should resolved this:

https://myurl.tld/?id=xxxxxxxx&getfunction=w

but alamaofire changes url this:

https://myurl.tld/?getfunction=w&id=xxxxxxxx

which not work me. think alamofire uses parameters in alphabetical order. there way use parameters in order have defined them? problem need use few more parameters in final call , parameters have in correct order.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -