Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Request failed: unauthorized (401) while implementing fitbit in ios app

ANSWERED
Replies are disabled for this topic. Start a new one or visit our Help Center.

hi 

I am developing an ios app where I need to implement FitBit API. I am strugling since last two days but still not succeed. I have seached so many topic and also tryed stack overflow but still not able to complete this. anyhow i managed to call API call and i can redirect to fitbit login page and also callback url is working. now the problem is as a responce I am getting something like this "

healthzip://?code=e22571810dee828244ae5adfc80b9a7f357c107f#_=_ "

from this i collect the code and try to call for token but as a responce I am getting error 401 so is there any body can help me to get out from this trouble. for more information i can post error log as well as my request code too.

 

thanks in advance

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

I got the solution for my problem. actually i am using AFOAuth2Manager and it has a property of 

useHTTPBasicAuthentication which is earler seted as NO. by making this property YES i can get make my request as a BASIC and now  i am able to get responce too.

 

if any one need to check or require any code then i will post it for you. 

 

thanks.

View best answer in original post

Best Answer
0 Votes
1 REPLY 1

I got the solution for my problem. actually i am using AFOAuth2Manager and it has a property of 

useHTTPBasicAuthentication which is earler seted as NO. by making this property YES i can get make my request as a BASIC and now  i am able to get responce too.

 

if any one need to check or require any code then i will post it for you. 

 

thanks.

Best Answer
0 Votes