Post request
Hello. I have a problem. I should make post request to api. My post request should have specific headers. I tried make this using tiggzi rest and use js and all the time I have same resut
POST http://project.tiggzi.com/rest/tunnel 405 (Method Not Allowed)
When I use extention for chrome (advanced rest client) I have next result
200 OK.
This is my request in tiggzi
settings = {
data : {
"sourceType": "Device",
"deviceName": "Withings WBS01 Body Scale",
"originAppName": "Health Vault",
"measurementType": "Weight",
"numericValue": 74,
"valueUnit": "kg",
"date": "2012-07-01",
"time": "2012-07-04T15:23:42-0400",
"notes": "Lost 2 pounds this week!"
},
headers : {
"tiggzi-proxy-url": "https://api.carepass.com/user-directo...",
"Authorization": "Bearer " + access_token,
"Content-Type": "application/json",
"Accept": "application/json"
}
};
testRST.execute(settings);
Could you help me?
Thank you in advance.