You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to access environments of space but getting error
I already allowed all enviourments in API token but still getting error
This are associated Environments of my space
This is code
import * as contentful from 'contentful-management';
const client = contentful.createClient({
accessToken: TOKEN,
host: 'cdn.contentful.com',
});
const main = async () => {
const space = await client.getSpace(SPACE_ID);
const env = await space.getEnvironments();
}
main();
Please help me on that error
The text was updated successfully, but these errors were encountered:
@itsppal02 if you need to fetch the environments you should use the contentful-management API (CMA) with your cma-token not the API key used for the Delivery API, please make sure that your token is not compromised since its bound to your account, with the same permissions across your spaces and organizations.
I am trying to access environments of space but getting error
I already allowed all enviourments in API token but still getting error
This are associated Environments of my space
This is code
The text was updated successfully, but these errors were encountered: