tumblr_api_derive

Crates.iotumblr_api_derive
lib.rstumblr_api_derive
version0.1.0
sourcesrc
created_at2023-09-10 03:21:05.545638
updated_at2023-09-10 03:21:05.545638
descriptionproc macros used by tumblr_api
homepage
repositoryhttps://github.com/adrianmgg/tumblr_api
max_upload_size
id968509
size15,763
amgg (adrianmgg)

documentation

README

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.

Commit count: 90

cargo fmt