Skip to content

Instantly share code, notes, and snippets.

@yellowred
Created September 28, 2016 04:47
Show Gist options
  • Select an option

  • Save yellowred/443305a7e991f0130d8a1ae69e2f38d4 to your computer and use it in GitHub Desktop.

Select an option

Save yellowred/443305a7e991f0130d8a1ae69e2f38d4 to your computer and use it in GitHub Desktop.
Swift 3 + Alamofire simple save object
let parameters: Parameters = [
"foo": "bar",
"baz": ["a", 1],
"qux": [
"x": 1,
"y": 2,
"z": 3
]
]
Alamofire.request("https://httpbin.org/post", parameters: parameters, encoding: URLEncoding.httpBody)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment