Guest User

Untitled

a guest
Jan 21st, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. let revokeUrl = "https://api.linkedin.com/uas/oauth/invalidateToken"
  2. let request = NSURLRequest(url: NSURL(string: revokeUrl)! as URL)
  3. let session = URLSession(configuration: URLSessionConfiguration.default)
  4. let task: URLSessionDataTask = session.dataTask(with: request as URLRequest) { (data, response, error) -> Void in
  5. print("Res:",response!)
  6. }
  7. task.resume()
  8. }
Add Comment
Please, Sign In to add comment