amoorion_tumblr

amoorion-tumblr: Tumblr plugin of amoorion: post and read through the Tumblr API v2.

class amoorion_tumblr.Tumblr(vault, view=None)[source]

Bases: HttpPlugin

A Tumblr blog through its API v2, with OAuth 1 keys from the vault.

Tumblr has no replies by API: posting, reading and deleting only.

Parameters:
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.

post(post)[source]

Publish a post; answers the message as the platform stored it.

Parameters:

post (Post)

Return type:

Message

read(limit=20)[source]

The latest messages, newest first, at most limit.

Parameters:

limit (int)

Return type:

list[Message]

delete(message)[source]

Delete a message by its id.

Parameters:

message (Message)

Return type:

None

profile()[source]

The name this account gets in the dataset.

Return type:

str

Modules

base

tumblr plugin: the Tumblr API v2, Neue Post Format, OAuth 1.0a.

text

A post as Neue Post Format blocks, and back.