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

405 response code for get subscriptions api call

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 Answer
0 Votes
1 REPLY 1

@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

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer