Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
webhooks
  • Loading branch information
scottcorgan committed Jan 21, 2015
1 parent c8f9385 commit 7c2f176
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Wrapper for the Divshot API.
* [Domains](#domains)
* [Environment Configuration](#app-environment-configuration)
* [Subscription](#subscription)
* [Webhooks](#webhooks)

## Install

Expand Down Expand Up @@ -421,6 +422,32 @@ app.subscription.update('card number').then(function (res) {
});
```

### Webhooks

Manipulate webhooks associated with your app

```js
app.webhooks.list().then(function (response) {

});

app.webhooks.create({url: 'some-url.com', active: true}).then(function () {

});

app.webhooks.resume(hook).then(function () {

});

app.webhooks.pause(hook).then(function () {

});

app.webhooks.remove(hookId).then(function () {

});
```

###App Environment Configuration

```js
Expand Down

0 comments on commit 7c2f176

Please sign in to comment.