Constructor
new HttpApi()
- Source:
Example
var url = "https://api.pipedrive.com/v1";
HttpApi.call("post",url+"/activities/?subject=example&type=call&deal_id=1420&due_date="+
Trellinator.now().stringFormat("YYYY-MM-DD")+"&due_time="+Trellinator.now().addHours(24).stringFormat("HH:MM")+
//the "api_token" parameter here is passed to "force_get"
//which means it will be sent as part of the query string
//even for put/post queries
"&api_token=SOMETOKEN&done=1","api_token");
Methods
(static) HttpApi.call(method, url, force_get)
Parameters:
Name | Type | Description |
---|---|---|
method |
string | one of get, put, delete or post |
url |
string | the complete URL including all parameters |
force_get |
string | (optional) force a parameter to be sent in the GET query string even for post or put queries |
- Source: