Kind: global class
- Client
- new Client(service, account, application, password)
- .getCountries(callback)
- .getCountry(country_id, callback)
- .getCarriers([country_id], callback)
- .getCarrier(carrier_id, callback)
- .updateChannel(name, properties, callback)
- .createChannel(properties, callback)
- .getChannels(callback)
- .getChannel(name, callback)
- .deleteChannel(name, callback)
- .getAO(token, callback)
- .sendAO(message, callback)
- .getCandidateChannelsForAO(args, callback)
- .getCustomAttributes(address, callback)
- .setCustomAttributes(address, attributes, callback)
- .createTwitterFriendship(args)
- .twitterAuthorize(args, callback)
- .xmppAddContact(args)
Represents the Nuntium API.
Param | Type | Description |
---|---|---|
service | string |
service url eg 'https://nuntium.instedd.org' |
account | string |
Your Nuntium account name |
application | string |
Name of your Nuntium application |
password | string |
Password for the application. |
Kind: instance method of Client
Param | Type |
---|---|
callback | requestCallback |
Kind: instance method of Client
Throws:
NuntiumError
On bad arguments
Param | Type |
---|---|
country_id | string |
callback | requestCallback |
Kind: instance method of Client
Param | Type |
---|---|
[country_id] | string |
callback | requestCallback |
Kind: instance method of Client
Throws:
NuntiumError
On bad arguments
Param | Type |
---|---|
carrier_id | string |
callback | requestCallback |
Kind: instance method of Client
Throws:
NuntiumError
On bad arguments
Param | Type | Description |
---|---|---|
name | string |
of the channel to update |
properties | Object |
to update |
callback | requestCallback |
Kind: instance method of Client
Param | Type | Description |
---|---|---|
properties | Object |
of the new channel |
callback | requestCallback |
Kind: instance method of Client
Param | Type |
---|---|
callback | requestCallback |
Kind: instance method of Client
Throws:
NuntiumError
On bad arguments
Param | Type | Description |
---|---|---|
name | string |
of the channel to get |
callback | requestCallback |
Kind: instance method of Client
Throws:
NuntiumError
On bad arguments
Param | Type |
---|---|
name | |
callback | requestCallback |
Kind: instance method of Client
Param | Type |
---|---|
token | string |
callback | requestCallback |
Kind: instance method of Client
Param | Type |
---|---|
message | Object | Array |
message.from | string |
message.body | string |
callback | requestCallback |
Kind: instance method of Client
Param | Type | Description |
---|---|---|
args | Object |
eg {'from':'sms://1234','body':'Hello'}, |
args.from | string |
sender (include sms:// prefix) |
args.body | string |
|
callback | requestCallback |
Kind: instance method of Client
Param | Type |
---|---|
address | string |
callback | requestCallback |
Kind: instance method of Client
Param | Type |
---|---|
address | string |
attributes | Object |
callback | requestCallback |
Kind: instance method of Client
Param | Type |
---|---|
args | Object |
args.channel | string |
args.user | string |
args.follow | bool |
Kind: instance method of Client
Param | Type |
---|---|
args | Object |
args.channel | string |
callback | requestCallback |
Kind: instance method of Client
Param | Type |
---|---|
args | Object |
args.channel | string |