Skip to content

Commit

Permalink
Merge pull request #63 from Nexmo/develop
Browse files Browse the repository at this point in the history
v1.0.0 release
  • Loading branch information
leggetter authored Sep 13, 2016
2 parents c82c65e + 7e5bdfb commit 94b20d8
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 14 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Changelog

All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.0]

- ADDED: `applicationId` and `privateKey` properties to first constructor parameter to support JWT generation.
- ADDED: `options.logger` to constructor 2nd parameter to allow adding customer logger.
- ADDED: `options.appendToUserAgent` to constructor 2nd paramater to append custom string to `User-Agent` header sent to Nexmo.
- ADDED: nexmo.calls adding support to `create`, `get`, `update` and `delete` calls.
- ADDED: nexmo.applications adding support to `create`, `get`, `update` and `delete` calls.
- ADDED: Functionality is now namespaced:
- `nexmo.message`
- `nexmo.calls`
- `nexmo.number`
- `nexmo.verify`
- `nexmo.numberInsight`
- `nexmo.account`
- `nexmo.voice` - legacy voice functionality
- CHANGED: `var Nexmo = require('nexmo');` returns a class definition which should be created using the `new` operator e.g. `var nexmo = new Nexmo(args...);`.
- REMOVED: `var nexmo = require('nexmo');` no longer exposes singleton functions offered by "easynexmo".

## Pre 1.0.0

Earlier versions of this library were published as "easynexmo". The "easynexmo" package is now deprecated.

[1.0.0]: https://github.com/Nexmo/nexmo-node/tree/v1.0.0
41 changes: 29 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ For full API documentation refer to https://docs.nexmo.com/

[![NPM](https://nodei.co/npm/nexmo.png)](https://nodei.co/npm/nexmo/)

[Installation](#installation) | [Constructor](#constructor) | [Messaging](#messaging) | [Calls (Voice)](#voice) | [Verify](#verify) | [Number Insight](#number-insight) | [Applications](#applications) [Management](#management)
[Installation](#installation) | [Constructor](#constructor) | [Messaging](#messaging) | [Voice](#voice) | [Verify](#verify) | [Number Insight](#number-insight) | [Applications](#applications) [Management](#management)

## Installation

Expand Down Expand Up @@ -64,7 +64,7 @@ nexmo.message.sendSms(sender, recipient, message, options, callback);
### Send a Binary Message

```js
nexmo.message.sendBinaryMessage(fromnumber, tonumber,body, udh, callback);
nexmo.message.sendBinaryMessage(fromnumber, tonumber, body, udh, callback);
```

* `body` - Hex encoded binary data
Expand All @@ -84,7 +84,9 @@ nexmo.message.sendWapPushMessage(fromnumber, tonumber, title, url, validity, cal
nexmo.message.shortcodeAlert(recipient, messageParams, opts, callback);
```

## Calls
## Voice

For detailed information please see the documentation at https://docs.nexmo.com/voice/call

### Make a call

Expand All @@ -104,14 +106,16 @@ nexmo.calls.create({
}, callback);
```

For more information check the documentation at https://docs.nexmo.com/voice/call
For more information see https://docs.nexmo.com/voice/voice-api/api-reference#call_create

### Get a Call

```js
nexmo.calls.get(callId, callback);
```

For more information see https://docs.nexmo.com/voice/voice-api/api-reference#call_create

### Query Calls

```
Expand All @@ -133,12 +137,24 @@ nexmo.calls.stream.start(
});
```

For more information see https://docs.nexmo.com/voice/voice-api/api-reference#stream_put

### Stop an audio stream in a call

```js
nexmo.calls.stream.stop(callId);
```

For more information see https://docs.nexmo.com/voice/voice-api/api-reference#stream_delete

### Send DTMF to a Call

```js
nexmo.calls.dtmf(callId, {digits: '1234'});
nexmo.calls.dtmf.send(callId, params, callback);
```

For more information see https://docs.nexmo.com/voice/voice-api/api-reference#dtmf_put

## Verify

### Submit a Verification Request
Expand Down Expand Up @@ -362,7 +378,7 @@ nexmo.updateSMSCallback(<NEW_CALLBACK_URL>,callback);
nexmo.account.updateDeliveryReceiptCallback(<NEW_DR_CALLBACK_URL>,callback);
```

## Legacy Voice
## Voice (Deprecated)

### Send TTS Message

Expand Down Expand Up @@ -404,7 +420,7 @@ Also see the [Nexmo Node Quickstarts repo](https://github.com/nexmo-community/ne

## API Coverage

* Calls (New Voice)
* Voice
* [x] Outbound Calls
* [ ] Inbound Call Webhook
* [x] Stream to Call
Expand Down Expand Up @@ -439,11 +455,6 @@ Also see the [Nexmo Node Quickstarts repo](https://github.com/nexmo-community/ne
* [x] Get Applications
* [x] Update an Application
* [x] Delete an Application
* Voice (Legacy)
* [x] Outbound Calls
* [ ] Inbound Call Webhook
* [x] Text-To-Speech Call
* [x] Text-To-Speech Prompt
* Account
* [X] Balance
* [x] Pricing
Expand All @@ -454,6 +465,12 @@ Also see the [Nexmo Node Quickstarts repo](https://github.com/nexmo-community/ne
* [x] Buy
* [x] Cancel
* [x] Update
* Voice (Deprecated)
* [x] Outbound Calls
* [ ] Inbound Call Webhook
* [x] Text-To-Speech Call
* [x] Text-To-Speech Prompt


## License

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nexmo",
"author": "nexmo",
"version": "1.0.0-beta-7",
"version": "1.0.0",
"main": "lib/Nexmo",
"keywords": [
"sms",
Expand All @@ -16,7 +16,7 @@
"type": "git",
"url": "git://github.com/nexmo/nexmo-node.git"
},
"description": "Nexmo REST API client for Node.js. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.",
"description": "Nexmo REST API client for Node.js. API support for SMS, Voice Calls, Text-to-Speech, Numbers, Verify (2FA) and more.",
"contributors": [
"nexmo",
"pvela",
Expand Down

0 comments on commit 94b20d8

Please sign in to comment.