How to make a GET api request

All GET request are similar, use the following aproach for all.

$.ajax({

   type: "GET",

   url: 'http://apiv2.clickmeter.com/endpointname?parameters',

   dataType: 'json',

   headers: { "X-Clickmeter-AuthKey": 'API-KEY' }

})

.successs(function (data) {

});

 

if endpoint supports timeframe patameter use the following types:

today, yesterday, last7, last30, last90, last180, currentMonth, previousmonth, last12months, lastyear, beginning,  custom

for custom timeframe you must specify dates interval:  fromDay=20151121000000&toDay=20151221235959&timeframe=custom

Date/timestamp fields are in 'yyyyMMddhhmmss' format

Have more questions? Submit a request

0 Comments

Article is closed for comments.