nl_tokens: Get cost sms campaign
pl_tokens: 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 <mask> ( 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 ) ; }