# Buffer REST SDK

Node.js SDK designed to work with
[Buffer's REST API](https://buffer.com/developers/api). This SDK is a wrapper
for Buffer's REST API. For full specification regarding entities used in this
library refer to [Buffer's official
documentation](https://buffer.com/developers/api).


## Requirements

- Node.js v6.3.1 or later


## Installation

```sh
$ npm install kestutisbalt/buffer-rest-sdk
```

## Get Started

To write an app using SDK:

  * Require 'buffer-rest-sdk' in your file

    ```js
    let Buffer = require('buffer-rest-sdk');
    ```

  * Create Buffer client with authorization token

    ```js
    let buffer = new Buffer.Client('1/mWot20jTwojsd00jFlaaR45');
    ```

  * Invoke the rest api (eg: get user info)

    ```js
    buffer.user.getUser().then((user) => {
      console.log(user);
    }).catch((error) => {
      console.log(error);
    });
    ```


## License

Code released under [LICENSE](LICENSE)


## Contributions

Pull requests are welcome.

# Buffer REST SDK

Node.js SDK designed to work with
[Buffer's REST API](https://buffer.com/developers/api). This SDK is a wrapper
for Buffer's REST API. For full specification regarding entities used in this
library refer to [Buffer's official
documentation](https://buffer.com/developers/api).
**Note: This is a personal project and it is not provided by
[Buffer](https://buffer.com)**.


## Requirements

- Node.js v6.3.1 or later


## Installation

```sh
$ npm install kestutisbalt/buffer-rest-sdk
```

## Get Started

To write an app using SDK:

  * Require 'buffer-rest-sdk' in your file

    ```js
    let Buffer = require('buffer-rest-sdk');
    ```

  * Create Buffer client with authorization token

    ```js
    let buffer = new Buffer.Client('1/mWot20jTwojsd00jFlaaR45');
    ```

  * Invoke the rest api (eg: get user info)

    ```js
    buffer.user.getUser().then((user) => {
      console.log(user);
    }).catch((error) => {
      console.log(error);
    });
    ```


## License

Code released under [LICENSE](LICENSE)


## Contributions

Pull requests are welcome.

Add note that sdk is not provided by buffer
Add note that sdk is not provided by buffer
