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

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -