Skip to content

Instantly share code, notes, and snippets.

@sgoodwin
Created April 8, 2015 00:05
Show Gist options
  • Save sgoodwin/1a3539f5560846fae784 to your computer and use it in GitHub Desktop.
Save sgoodwin/1a3539f5560846fae784 to your computer and use it in GitHub Desktop.
Alamofire.request(SharingRouter.GroupAdd(sharing: sharing, name: name)).responseJSON(options: nil) { (request, response, json, error) -> Void in
let group = flatMap(map(json, JSONValue.parse), Group.decode)
block(group)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment