help:pawoo api
For up to date details on the Pawoo API, see https://github.com/pixiv/mastodon.
Set up a Pawoo account
To access the API on Pawoo, you must have a Pawoo account. See Howto:Pawoo for details.
Get an access token
Perform a GET using your credentials to any Pawoo /web url, e.g. https://pawoo.net/web/accounts/$ID_NUMBER, where $ID_NUMBER is the account ID. This can even be your own account ID.
Scrape the HTML for the JSON. This can be done using the following regex:
<script id=\'initial-state\' type=\'application/json\'>(.+?)</script>
After importing the JSON, grab the access token using the ['meta']['access_token']
key.
Queries
Pawoo posts, which are equivalent to Twitter tweets, are called toots below.
Account
Account Information
URL | https://pawoo.net/api/v1/accounts/$ID |
Method | GET |
Note:$ID is the account ID.
Account toots
URL | https://pawoo.net/api/v1/accounts/$ID/statuses |
Method | GET |
Note:$ID is the account ID.
- Parameters:
- max_id: Largest ID allowed
- since_id: Lowest ID allowed
- only_media: 1 for true, 0 for false
- exclude_replies: 1 for true, 0 for false
Toots
Toot information
URL | https://pawoo.net/api/v1/statuses/$ID |
Method | GET |
Note:$ID is the toot ID.