Sign in | Sign up

User Log

Tagged:

Currently contains 2 posts

Avatar

April 19, 2018 23:01

rhom

Hi,

I am trying to retrieve a users log data using GET

https://trackapi.nutritionix.com/v2/log/NzAeB4AL4OQbXvY

… where NzAeB4AL4OQbXvY is the user id retrieved using the SignIn API call

but I get the following response:

{
“message”: “unauthorized”,
“id”: “92075835-8b62-4fbc-bbc2-de77f3810a74”
}

Any ideas?

thank you

Avatar

April 20, 2018 01:04

rhom

I figured it out… and wanted to post for future dev people :)

I was missing the x-user-jwt parameter which needs to be part of the GET https://trackapi.nutritionix.com/v2/log/[userId]

You can get the userId from the signin API and the x-user-jwt token too (its at the end of the json response)

Reply to thread