api/sendpulse.js
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, callback);
}
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, callback);
}
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 , callback ) ; }
Update phones variables from the address book

@param callback
@param addressbook_id
@param phones
@param variables
Update phones variables from the address book