i am using this code(
auth_url = (
f"https://app.hubspot.com/oauth/authorize"
f"?client_id={CLIENT_ID}"
f"&redirect_uri={REDIRECT_URI}"
f"&scope={scope.replace(’ ', ‘%20’)}" # Replace spaces with %20
f"&state={encoded_state}"
f"&code_challenge={code_challenge}"
f"&code_challenge_method=S256"
)
)
to get token but getting error:
this is my header content:
Request URL:
Request Method:
POST
Status Code:
400 Bad Request
and response:
{
“status”: “error”,
“message”: “Authorization failed because one or more scopes are invalid: [calling-access]. Please contact the app developer.”,
“correlationId”: “e2fd053e-869c-43a5-b034-2423f850cdbf”,
“context”: {
“SCOPE_GROUPS”: [
“[calling-access]”
]
},
“category”: “VALIDATION_ERROR”,
“subCategory”: “AuthorizationErrorType.INVALID_SCOPE_GROUP”
}
I am using developer test accont.
