google apps script - POST command to WebCeo API -
trying connect webceo api.
function getprojects() { var payload = { "key": "customer_key", "method": "get_projects" }; payload = json.stringify(payload); var url = "https://online.webceo.com/api/"; var options = { "method": 'post', "contenttype" : "application/json", "payload": payload }; var response = urlfetchapp.fetch(url, options); }
receiving "request failed https://online.webceo.com/api/ returned code 404".
any hint on else need include / change?
body must contain following:
json={"key": "your_api_key", "method": "get_projects"}
Comments
Post a Comment