addToSMSKeyword

The addToSMSKeyword function allows you to add contacts to an SMS keyword. If you want to remove people from an SMS keyword, use removeFromSMSKeyword.

Syntax

writeResult = bApi.addToSMSKeyword(smsKeywordObject[] keyword, contactObject[] contacts);

SMS Keyword Object Attributes

Name Type Required Description
id string No (Required if a name is not passed in) The unique id for an SMS keyword.
name string No (Required if an id is not passed in) The name assigned to an SMS keyword.

Contact Object Attributes

Name Type Required Description
id string No (Required if an email or mobileNumber is not passed in) The unique id for a contact.
email string No (Required if an id or mobileNumber is not passed in) The email address assigned to a contact.
mobileNumber string No (Required if an email or id is not passed in) The mobile number stored for a contact; must include a valid country code.