Updated Notify_nexmo (markdown)

Chris Caron 2019-06-26 20:21:58 -04:00
parent c7ba4ec3b9
commit afad1cad4c

@ -1,41 +1,39 @@
## Nexmo
* **Source**: https://nexmo.com/
* **Source**: https://d7networks.com
* **Icon Support**: No
* **Message Format**: Text
* **Message Limit**: 140 Characters per message
* **Message Limit**: 160 Characters per message
### Account Setup
To use Nexmo, you will need to acquire your _API Key_ and _API Secret_. Both of these are accessible via the [Nexmo Dashboard](https://dashboard.nexmo.com/getting-started-guide).
To use this service you will need a D7 Networks account from their [website](https://d7networks.com/)
The **{FromPhoneNo}** must be a number provided to you through Nexmo
After you've established your account you can get your api login credentials (both _user_ and _password_) from the API Details section from within your [account profile area](https://d7networks.com/accounts/profile/).
### Syntax
Valid syntaxes are as follows:
* **nexmo**://**{ApiKey}**:**{ApiSecret}**@**{FromPhoneNo}**/**{PhoneNo}**
* **nexmo**://**{ApiKey}**:**{ApiSecret}**@**{FromPhoneNo}**/**{PhoneNo1}**/**{PhoneNo2}**/**{PhoneNoN}**
If no _ToPhoneNo_ is specified, then the _FromPhoneNo_ will be messaged instead; hence the following is a valid URL:
* **nexmo**://**{ApiKey}**:**{ApiSecret}**@**{FromPhoneNo}**/
* **d7sms**://**{user}**:**{password}**@/**{PhoneNo}**
* **d7sms**://**{user}**:**{password}**@**{PhoneNo1}**/**{PhoneNo2}**/**{PhoneNoN}**
### Parameter Breakdown
| Variable | Required | Description
| --------------- | -------- | -----------
| ApiKey | Yes | The _API Key_ associated with your Nexmo account. This is available to you via the [Nexmo Dashboard](https://dashboard.nexmo.com/getting-started-guide).
| ApiSecret | Yes | The _API Secret_ associated with your Nexmo account. This is available to you via the [Nexmo Dashboard](https://dashboard.nexmo.com/getting-started-guide).
| FromPhoneNo | Yes | This must be a _From Phone Number_ that has been provided to you from the Nexmo website.
| PhoneNo | **\*No** | A phone number MUST include the country codes dialling prefix as well when placed. This field is also very friendly and supports brackets, spaces and hyphens in the event you want to format the number in an easy to read fashion
| user | Yes | The _username_ associated with your D7 Networks account. This is available to you via the **API Details** section from within your [account profile area](https://d7networks.com/accounts/profile/).
| password | Yes | The _API Secret_ associated with your D7 Networks account. This is available to you via the **API Details** section from within your [account profile area](https://d7networks.com/accounts/profile/).
| PhoneNo | Yes | At least one phone number MUST identified to use this plugin. This field is also very friendly and supports brackets, spaces and hyphens in the event you want to format the number in an easy to read fashion.
| from | No | Originating address,In cases where the rewriting of the sender's address is supported or permitted by the SMS-C. This is used to transmit the message, this number is transmitted as the originating address and is completely optional.
| priority | No | By default a priority of zero (0) is set (low). You can set 0, 1, 2, or 3 if you wish to adjust this value where as 3 represents a high priority.
| batch | No | D7 Networks allows a batch mode; by default this is off. If you identify more then one phone number, you can send all of them in a single post instead of the normal _Apprise_ approach as to send them one by one. By default batch mode is disabled.
#### Example
Send a Nexmo Notification as an SMS:
Send a D7 Network Notification as an SMS:
```bash
# Assuming our {APIKey} is bc1451bd
# Assuming our {APISecret} is gank339l7jk3cjaE
# Assuming our {FromPhoneNo} is +1-900-555-9999
# Assuming our {user} is l2g
# Assuming our {password} is appriseIsAwesome
# Assuming our {PhoneNo} - is in the US somewhere making our country code +1
# - identifies as 800-555-1223
apprise nexmo://bc1451bd:gank339l7jk3cjaE@19005559999/18005551223
apprise d7sms://l2g:appriseIsAwesome@18005551223
# the following would also have worked (spaces, brackets,
# dashes are accepted in a phone no field):
apprise nexmo://bc1451bd:gank339l7jk3cjaE@1-(900) 555-9999/1-(800) 555-1223
apprise d7sms://l2g:appriseIsAwesome@1-(800) 555-1223
```