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

I need a PHP demo

Hello friends and developers,

I am just a designer and front-end developers, i know a bit about php. I completed my web-app 1 year agos, it is www.FitbitLeague.com and working very good until Fitbit changed to OAuth 2.0. It has a lot users and now they can't access anymore.

 

I tried read document but can't make my web-app work again.

 

So, can you help to give us a demo (php source code) what you are using for your application? 
(Please remove all secrect information if you can help me to provide a demo)

 

Thank you very much.
Best regards,

Cuong Vu from www.FitbitLeague.com

 

Moderator edit: Clarified subject

Best Answer
0 Votes
2 REPLIES 2

If you have an existing OAuth 1.0a app, here are a few things you'll need to do:

 

  • Upgrade each user's OAuth 1.0a access token and access token secret to an OAuth 2.0 access token and refresh token. See Migrating from OAuth 1.0a
  • Replace the OAuth 1.0a HTTP requests with OAuth 2.0 requests to the Fitbit Web API. Making OAuth 2.0 requests is much simpler than with OAuth 1.0a. You can use any generic HTTP library, as you only need to add an Authorization header with the OAuth 2.0 access token. See Making Requests.
  • Replace the OAuth 1.0a authorization flow with the OAuth 2.0 Authorization Code Grant Flow for new authorizations.
Best Answer
0 Votes

Hey! You could ask for help from professionals. Find a web development company and send them an email.Or you might let them do the job for you. If you're doing the project for yourself (to learn and gain experience) then use a demo, otherwise, if is for public use or for making money, you need it to be as good as posible. www.3magine.com made two projects for me and you can also contact them. They'll came with the best solution posible 'cause they have a lot of experience in that field. In this case, it will be better to let others who have experience to do it for you. On the long term it is a win situation.

Best Answer
0 Votes