Skip to content

Commit 917dd27

Browse files
author
Dan Tolbert
committed
bump version and break out exampels in readme
1 parent 0bbb2e0 commit 917dd27

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ This SDK stable for node versions 7 and above
2020
## Release Notes
2121
| Version | Notes |
2222
|:--|:--|
23+
| 1.1.0| Added import tn functionality, added promise based `Async` functions |
24+
2325

2426
## Install
2527

@@ -59,6 +61,8 @@ The async method is the original method name with `Async` added.
5961

6062
### Example for listing Available Numbers
6163

64+
#### Callbacks
65+
6266
```js
6367
// Callbacks
6468
numbers.AvailableNumbers.list(query, (err, availableNumbers) => {
@@ -69,7 +73,10 @@ numbers.AvailableNumbers.list(query, (err, availableNumbers) => {
6973
console.log(availableNumbers);
7074
}
7175
});
76+
```
7277

78+
#### Promise Chaining
79+
```js
7380
//Promise chaining
7481
numbers.AvailableNumbers.listAsync(query)
7582
.then(availableNumbers => {
@@ -79,6 +86,10 @@ numbers.AvailableNumbers.listAsync(query)
7986
console.log(e);
8087
});
8188

89+
```
90+
91+
#### Async/Await
92+
```js
8293
//Async/await
8394
try {
8495
const availableNumbers = await numbers.AvailableNumbers.listAsync(query);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bandwidth/numbers",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "NodeJs Client library for Bandwidth Numbers API",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)