Skip to content

Instantly share code, notes, and snippets.

@shiningabdul
Created November 17, 2017 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shiningabdul/b90569178d59c469d46166016b0c8687 to your computer and use it in GitHub Desktop.
Save shiningabdul/b90569178d59c469d46166016b0c8687 to your computer and use it in GitHub Desktop.
let user = User()
user.id = "233"
APICaller.sharedInstance.performCallToEndpoint("/users", using: "POST",
body: user, responseType:User.self) { (error, serverError, response) -> () in
if let response = response {
print(response)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment