Authorization Error

Hello ,

HEADERS:
Content-Type: application/json;charset=UTF-8
Authorization: Bearer (my Access Token)

REQUEST:
POST https://api.ecobee.com/1/demandRespon...

POST BODY:
{
"selection": {
"selectionType":"thermostats",
"selectionMatch":"_________"
},
"operation":"create",
"demandResponse":{
"name":"myDR",
"message":"This is a DR!",
"event": {
"heatHoldTemp":790,
"endTime":"11:37:18",
"endDate":"2011-01-10",
"name":"apiDR",
"type":"useEndTime",
"coolHoldTemp":790,
"startDate":"2011-01-09"
"startTime":"11:37:18",
"isTemperatureAbsolute":true
}
}
}

i am trying to develop my own app, so i am using above code for set current temperature but , i got below error

{
"status": {
"code": 2,
"message": "Not authorized."
}
}

Kindly suggest me how can i reslove this issue.

Thanks
1 person has
this problem
+1
Reply