1 unstable release

0.1.0 Sep 10, 2023

#5 in #tumblr

43 downloads per month
Used in tumblr_api

MIT/Apache

15KB
256 lines

A rust implementation of the Tumblr API.

This is still very much in beta! see Major Planned/Unimplemented Features

Examples

Example: Creating a simple post with the client

use tumblr_api::client::{Client, Credentials};
use tumblr_api::npf;
let client = Client::new(Credentials::new_oauth2(
    "your consumer key",
    "your consumer secret",
));
client
    .create_post(
        "blog-name",
        vec![npf::ContentBlockText::builder("hello world").build()],
    )
    .send()
    .await?;

Major Planned/Unimplemented Features

  • refreshing access tokens (currently, the client will just start failing after the token expires)
  • implement remaining api endpoints (currently it's just post creation plus a couple others)

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.7–1.1MB
~25K SLoC