AnsweredAssumed Answered

API Authentication errors using Insert from URL and cURL

Question asked by yancmo on Feb 10, 2018
Latest reply on Feb 10, 2018 by yancmo

Hello all,

 

I'm trying to connect to FitBits Api to customize my own little fitbit app. Authenticating with oAuth 2. I'm having trouble getting FM to authenticate through the Insert from URL. I can connect fine in postman so I'm sure it is just a formatting issue with FM.

 

I'm using FM Pro 16 no plugins just insert from URL.

 

Here is my code information.

 

 

From Postman:

curl -X GET \

  https://api.fitbit.com/1/user/-/profile.json \                   (removed and put into the "Specify URL wrapped in "")

  -H 'Authorization: Bearer TOKEN.blah.blah' \

  -H 'Cache-Control: no-cache' \

  -H 'Postman-Token: a41e973d-0417-bad6-cc08-146176854694'

 

 

FM cURL options:

" -X GET \

    -H Authorization: Bearer TOKEN.blah.blah\

  -H Cache-Control: no-cache "

 

I've edited the options every which way and had local help and can't seem to get past the Authentication errors.

 

Thank you for any help and guidance.

Outcomes