Closed singh-s-sachin closed 5 years ago
@singh-s-sachin how did you resolve it?
Try in this way let headers : [String : String] = [ "Content-type": "application/json", "Authorization":"Token f49f383b-0710-494c-ad79-76cdf3970c53" ]
It still saying Missing or wrong access token. I tried with my token, it didn't work. Then I used your one. Still, it doesn't.
let headers = [ "Authorization": "f49f383b-0710-494c-ad79-76cdf3970c53", "Content-type": "application/json" ] Alamofire.request("https://run.glot.io/languages/python/latest", method: .post, parameters: body , encoding: JSONEncoding.default, headers: headers).responseJSON
this is my code snippet