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

How to properly sign API request and set up OAuth 1.0a flow?

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

New Fitbit API debug tool that helps you debugging every single OAuth flow step and making actual request: https://dev.fitbit.com/apps/oauthtutorialpage

At this page you can simply copy and paste your data and see right away how the right signature should look like and how this signature was formed(base string + "signed with" value)

 

Ivan Bahdanau
Senior Software Developer at Fitbit
1 BEST ANSWER

Accepted Solutions

If you have troubles using/understanding this page, please check out following video: https://www.youtube.com/watch?v=5r-Tnn781gs

Ivan Bahdanau
Senior Software Developer at Fitbit

View best answer in original post

Best Answer
0 Votes
3 REPLIES 3

If you have troubles using/understanding this page, please check out following video: https://www.youtube.com/watch?v=5r-Tnn781gs

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes

Thank you again for your reply. I am still unsure of how to call the API with the existing token from storage.

Would it be possible to show me example code of calling the API with a token retrieved from storage?

 

Thanks,

 

Hussain

Best Answer
0 Votes

@hsalbi wrote:

Thank you again for your reply. I am still unsure of how to call the API with the existing token from storage.

Would it be possible to show me example code of calling the API with a token retrieved from storage?

 

Thanks,

 

Hussain


Hi Hussain,

 

Are you using an existing OAuth 1 client? Most clients support some method of setting user token and secret.

 

For example, in the FitbitPHP client, you call:

$fitbit->setOAuthDetails('token_stored_for_user', 'secret_stored_for_user');

 

Best Answer
0 Votes