Skip to content

Instantly share code, notes, and snippets.

@gbasile
Created January 27, 2016 23:12
Show Gist options
  • Save gbasile/5fa221e78859474f2677 to your computer and use it in GitHub Desktop.
Save gbasile/5fa221e78859474f2677 to your computer and use it in GitHub Desktop.
let request = RegisterDeviceTokenRequest(deviceToken:tokenString, callback: { (response: Result) -> Void in
switch response {
case .Success:
DDLogInfo("📩 ✅ Device token registration")
case .Failure(let error):
DDLogError("📩 ❌ Device token registration \(error)")
}
})
NetworkingClient.request(request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment