function smsGetCampaignCost(callback, sender_name, body, addressbook_id, phones){
    if (sender_name === undefined) {
        return callback(returnError("Empty sender name"));
    }
    if (body === undefined) {
        return callback(returnError("Empty sms text"));
    }
    if ((addressbook_id === undefined) || (phones === undefined) || (!phones.length)) {
        return callback(returnError("Empty book id or phones"));
    }
    var data = {
        'sender': sender_name,
        'body': body,
        'addressBookId': addressbook_id
    }
    if (phones.length) {
        data['phones'] = JSON.stringify(phones);
    }

    sendRequest('sms/campaigns/cost', 'GET', data, true, callback);
}
function smsGetCampaignCost(callback, sender_name, body, addressbook_id, phones){
    if (sender_name === undefined) {
        return callback(returnError("Empty sender name"));
    }
    if (body === undefined) {
        return callback(returnError("Empty sms text"));
    }
    if ((addressbook_id === undefined) || (phones === undefined) || (!phones.length)) {
        return callback(returnError("Empty book id or phones"));
    }
    var data = {
        'sender': sender_name,
        'body': body,
        'addressBookId': addressbook_id
    }
    if (phones.length) {
        data['phones'] = JSON.stringify(phones);
    }

    sendRequest('sms/campaigns/cost', 'GET', data, true, callback);
}
function smsGetCampaignCost ( callback , sender_name , body , addressbook_id , phones ) { if ( sender_name === undefined ) { return callback ( returnError ( "Empty sender name" ) ) ; } if ( body === undefined ) { return callback ( returnError ( "Empty sms text" ) ) ; } if ( ( addressbook_id === undefined ) || ( phones === undefined ) || ( ! phones . length ) ) { return callback ( returnError ( "Empty book id or phones" ) ) ; } var data = { 'sender' : sender_name , 'body' : body , 'addressBookId' : addressbook_id } if ( phones . length ) { data [ 'phones' ] = JSON . stringify ( phones ) ; } sendRequest ( 'sms/campaigns/cost' , 'GET' , data , true , callback ) ; }
Get cost sms campaign

@param callback
@param sender
@param body
@param addressbook_id
@param phones
Get cost sms campaign