Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Commit

Permalink
add getPaymentMethods to api calls (#171)
Browse files Browse the repository at this point in the history
* add getPaymentMethods to readme

* add getPaymentMethods call to api
  • Loading branch information
sagivo authored and fb55 committed Dec 24, 2017
1 parent 9a59db2 commit 0b92d6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ only need to create a single client.
authedClient.getCoinbaseAccounts(callback);
```

* [`getPaymentMethods`](https://docs.gdax.com/#payment-methods)

```javascript
authedClient.getPaymentMethods(callback);
```

* [`getAccounts`](https://docs.gdax.com/#list-accounts)

```js
Expand Down
4 changes: 4 additions & 0 deletions lib/clients/authenticated.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class AuthenticatedClient extends PublicClient {
getCoinbaseAccounts(callback) {
return this.get(['coinbase-accounts'], callback);
}

getPaymentMethods(callback) {
return this.get(['payment-methods'], callback);
}

getAccounts(callback) {
return this.get(['accounts'], callback);
Expand Down

0 comments on commit 0b92d6e

Please sign in to comment.