All methods
Five methods, all GET, read only. Pass the key in the Authorization: Bearer <key> header.
API address: https://api.donatty.com
A key works only in its own environment: a key from the staging dashboard works with https://api.staging.donatty.com, a key from the production dashboard with https://api.donatty.com.
| Method | Key |
|---|---|
Streamer profileGET /v1/streamer |
secret or public |
DonationsGET /v1/donations |
secret only |
Fundraising goalsGET /v1/goals |
secret or public |
Top donorsGET /v1/stats/top |
secret or public |
Total donatedGET /v1/stats/total |
secret or public |
Pages, money and time are in Working with data; response codes are in Errors.
Try a request
Section titled “Try a request”On a method page press “Try a request” and paste your key. In the request example, YOUR_SECRET_TOKEN stands for your key: secret or public, whichever the method accepts. The page does not store the key. The request example on a method page switches between Shell, Node.js, Python, PHP and Ruby.
The public key works from here only if https://developers.donatty.com is among its addresses.
OpenAPI
Section titled “OpenAPI”openapi.json describes every method. Its servers field holds the production address https://api.donatty.com: replace it for staging.