Insufficient permission to access the Google Fitness API

Hi,
I am working on google fitness api. But now i faced a trouble.
As expo doc is written like this,

"You’ll get an access token after a succesful login. Once you have the token, if you would like to make further calls to the Google API, you can use Google’s REST APIs directly through HTTP (using fetch, for example).

// Example of using the Google REST API
async function getUserInfo(accessToken) {
  let userInfoResponse = await fetch('https://www.googleapis.com/userinfo/v2/me', {
    headers: { Authorization: `Bearer ${accessToken}`},
  });

  return userInfoResponse;
}

"

but in case of google fitness rest api it does not work.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.