I am not able to authorize in accessing users from intercom using get request. This is what I have done:
import requests
headers = {
'Authorization': 'Bearer {my accsess token}',
'Accept': 'application/json',
'Content-Type': 'application/json',
}
res = requests.get("https://api.intercom.io/users",headers=headers)
Error I am getting:
{"code":"token_unauthorized","message":"Not authorized to access resource"}
Please tell me what I am doing wrong. Thanks in advance.