0

I am sending this header:

[
  "Content-Type": "application/json",
  "Accept": "application/json",
  "Accept-Encoding": "br",
  "Authorization": "token 6cb39474cc2ae0ea1d1ca34bebe03ac89fdcc8e4"
]

The token is valid and working in Postman, but not in iOS.

ZGski
  • 2,398
  • 1
  • 21
  • 34
  • Check if you need any 'Subscription-Key' –  Dec 11 '19 at 19:50
  • You are using Alamofire since it's tagged with Alamofire, no? Here is a tip to compare by doing "curl" equivalent: https://stackoverflow.com/questions/53637437/alamofire-with-d/53637821#53637821 since in Postman, we can convert into curl too: https://blog.getpostman.com/2016/02/03/curl-and-postman-work-wonderfully-together/ and compare. No? If no Alamofire, show your code, and the Postman equivalent Swift generated. – Larme Dec 11 '19 at 20:03
  • i have checked with different API Manager and it worked. so i think issue with Alamofire. – Sanket Pund Dec 12 '19 at 14:57

0 Answers0