amoorion_tumblr.base¶
tumblr plugin: the Tumblr API v2, Neue Post Format, OAuth 1.0a.
Secrets (tumblr/<key>): consumer-key, consumer-secret, token,
token-secret, blog; optional uri (default https://api.tumblr.com).
Classes
|
A Tumblr blog through its API v2, with OAuth 1 keys from the vault. |
- class amoorion_tumblr.base.Tumblr(vault, view=None)[source]¶
Bases:
HttpPluginA Tumblr blog through its API v2, with OAuth 1 keys from the vault.
Tumblr has no replies by API: posting, reading and deleting only.
- reason(response)[source]¶
What went wrong, from this platform’s own form of errors.
- Parameters:
response (Response)
- Return type:
str
- property blog: str¶
The blog’s name, from the vault.
- read(limit=20)[source]¶
The latest messages, newest first, at most
limit.- Parameters:
limit (int)
- Return type:
list[Message]