02-21-2016 12:39 - edited 02-21-2016 12:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-21-2016 12:39 - edited 02-21-2016 12:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I am using this for my college project https://github.com/jmitchell38488/oauth2-fitbit
I have installed it, and when I run it I get the following error on the fitbit website:
Developer information: invalid_request - Missing parameters: client_id
I am using the "Authenticate Session" code as shown on the github page, and have edited
$provider = new FitBitAuthorization([ 'clientId' => $my_client_id_from_fitbit, 'clientSecret' => $my_client_secret_from_fitbit, 'redirectUri' => $my_callback_url, ]);
with my own details. What am I doing wrong?
I am using wampserver and my redirectUri is localhost - where the web app will be used for testing purposes. It is running PHP version 5.5
Answered! Go to the Best Answer.
Accepted Solutions
02-22-2016 14:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-22-2016 14:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hi @Matt.Swart,
I'll be able to help you out overnight when I'm back. Please feel free to start any discussions that you have on my github: https://github.com/jmitchell38488/oauth2-fitbit
Cheers,
Justin
04-11-2016 12:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-11-2016 12:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
02-22-2016 12:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-22-2016 12:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@jmitchell38488 any chance you have some words of wisdom to help out a bunch of college students? We coded your code you put up on GitHub and filled in what we thought was the blanks and at the very least we are getting some feed back but the feed back in question is invalid_request - Missing parameters: client_id.
Any help will be awesome and thanks for your time.
Regards
MattSwart and JordanHarrison

02-22-2016 14:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-22-2016 14:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hi @Matt.Swart,
I'll be able to help you out overnight when I'm back. Please feel free to start any discussions that you have on my github: https://github.com/jmitchell38488/oauth2-fitbit
Cheers,
Justin
04-11-2016 10:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-11-2016 10:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Sorry to be asking but is there any way that we can automate the auth request file. We downloaded your files from GitHub and it works perfectly but have to manually have to hit the allow button every time we want to acquire info for our project. We have tried to set up a crontab in Linux to handle this but coming up short and one of the guys tried to write a PHP script but again we are coming up short.
Any help would be awesome.
Kind regards
Matthew

04-11-2016 12:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-11-2016 12:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
04-11-2016 14:16
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-11-2016 14:16
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@GaryBrittain thanks a million that has been wrecking our heads for days

