nl_tokens: Create new campaign
pl_tokens: function createCampaign ( callback , senderName , senderEmail , subject , body , bookId , name , attachments ) { if ( ( senderName === undefined ) || ( ! senderName . length ) || ( senderEmail === undefined ) || ( ! senderEmail . length ) || ( subject === undefined ) || ( ! subject . length ) || ( body === undefined ) || ( ! body . length ) || ( bookId === undefined ) ) { return callback ( returnError ( 'Not all data.' ) ) ; } if ( name === undefined ) { name = '' ; } if ( attachments === undefined ) { attachments = '' ; } if ( attachments . length ) { attachments = serialize ( attachments ) ; } var data = { sender_name : senderName , sender_email : senderEmail , //subject: encodeURIComponent(subject), //subject: urlencode(subject), <mask> : subject , body : base64 ( body ) , list_id : bookId , name : name , attachments : attachments } sendRequest ( 'campaigns' , 'POST' , data , true , callback ) ; }