08-04-2016 00:49 - edited 08-04-2016 01:43
08-04-2016 00:49 - edited 08-04-2016 01:43
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
Answered! Go to the Best Answer.
08-04-2016 03:28 - edited 08-04-2016 03:29
08-04-2016 03:28 - edited 08-04-2016 03:29
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.
08-04-2016 03:28 - edited 08-04-2016 03:29
08-04-2016 03:28 - edited 08-04-2016 03:29
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.