Class ContactGroup
Namespace: SMSJuiceAPI
Located at SMSJuice-API/class/ContactGroup.php
Methods summary
public
|
#
__construct( type $key, type $secret, type $groupName )
Creates a new ContactGroup object
Creates a new ContactGroup object
Parameters
- $key
- API Key found in the settings section of your account
- $secret
- API Secret found in the settings section of your account
- $groupName
- Name of group to be created or edited
Throws
Exception Thrown when either key, secret or groupName are empty or not set
|
public
|
#
addContactList( type $contacts )
Adds a list (array) of contacts to the group's contact list.
Adds a list (array) of contacts to the group's contact list.
Parameters
- $contacts
- Contact list to add.
|
public
|
#
addContact( type $contact )
Adds a single contact to the group
Adds a single contact to the group
Parameters
- $contact
- Contact (name and) number to add to the contactGroup
|
public
String
|
#
toJSON( )
Returns the JSON representation as it will be sent to the SMSJuice HTTP API
Returns the JSON representation as it will be sent to the SMSJuice HTTP API
Returns
String JSON string to be sent to the API as part of a request
|