step 1 : Fetching access_token by URL
with payload includes scope = "
Aaaserver.profile.READ"
and getting access_token successfully
{ "access_token": "xxxx.xxxxxxxxxd57cxxx9xxxd1xxxexxxxxx.8242xxx4357xxxc6bxxx85xxxb6xxxxx", "expires_in_sec": 3600, "api_domain": "https://www.zohoapis.com", "token_type": "Bearer", "expires_in": 3600000 }
step 2: But while trying to read User Info with same access_token receiving error as below
header :
Authorization = Zoho-oauthtoken xxxx.xxxxxxxxxd57cxxx9xxxd1xxxexxxxxx.8242xxx4357xxxc6bxxx85xxxb6xxxxx
Response
{
"response": "error",
"cause": "INVALID_OAUTHSCOPE"
}
Also tried with scope =
ZohoMail.folders.READ, scope =
Aaaserver.profile.read,
scope = a
aaserver.profile.read
so i need to know what is right option for scope ?????