nl_tokens: Update phones variables from the address book
pl_tokens: function smsUpdatePhonesVariables ( callback , addressbook_id , phones , variables ) { if ( addressbook_id === undefined ) { return callback ( returnError ( "Empty book id" ) ) ; } if ( ( phones === undefined ) || ( ! phones . length ) ) { return callback ( returnError ( "Empty phones" ) ) ; } if ( ( variables === undefined ) || ( ! Object . keys ( variables ) . length ) ) { return callback ( returnError ( "Empty variables" ) ) ; } var data = { 'addressBookId' : addressbook_id , 'phones' : JSON . stringify ( phones ) , 'variables' : JSON . stringify ( variables ) } sendRequest ( 'sms/numbers' , 'PUT' , data , true , <mask> ) ; }