04-30-2016 05:29
04-30-2016 05:29
HI,
I'm using the rails gem fitgem_oauth2 for my project and have been able to setup the basic fitbit integration successfully. I have setup and validated the subscription call back endpoint as well.
However when i try to make the get request to retrieve a users subscriptions list i get an 405 response.
the GET req url looks like this https://api.fitbit.com/1/user/4HLZXX/apiSubscriptions/1.json
please advise.
Suren
Best Answer04-30-2016 16:52
Community Moderator Alumni are previous members of the Moderation Team, which ensures conversations are friendly, factual, and on-topic. Moderators are here to answer questions, escalate bugs, and make sure your voice is heard by the larger Fitbit team. Learn more
04-30-2016 16:52
@ozind By checking the docs, looks like this might be the problem:
| 405 Method Not Allowed | Returned if a GET is attempted on an endpoint where only POST can be used. |
Try this instead:
https://api.fitbit.com/1/user/-/<collection-path>/apiSubscriptions.json