Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let request = NSMutableURLRequest(URL: (NSURL(string: "http://instudy.io:80/api/courses/my/"))!, cachePolicy: NSURLRequestCachePolicy.ReloadIgnoringLocalCacheData, timeoutInterval: 5)
- var response: NSURLResponse?
- // create some JSON data and configure the request
- request.HTTPMethod = "GET"
- request.setValue("application/json", forHTTPHeaderField: "Content-Type")
- request.setValue("Token \(GlobalStorage.token)", forHTTPHeaderField: "")
- print("\n\nToken \(GlobalStorage.token)")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement