How to create a new campaign (group) api

var model = {

   name: 'some campaign name'

};

 

$.ajax({

 

   type: "POST",

 

   url: 'http://apiv2.clickmeter.com/groups/',

 

   dataType: 'json',

 

   data: JSON.stringify(model),

 

   headers: { "X-Clickmeter-AuthKey": 'API-KEY', "Content-type": "application/json" }

 

})

 

.success(function (data) {

 

   // data: { id: [identifier], uri: '/groups/[id]' }

 

})

 

.error(function (jqXhr, textStatus, errorThrown) {

 

   //jqXhr.responseText - { errors: {errorMessage: 'some message', errorValue: 'property name'}}

});

Have more questions? Submit a request

0 Comments

Article is closed for comments.