Crates.io | flickr-api |
lib.rs | flickr-api |
version | 0.2.1 |
source | src |
created_at | 2024-06-16 12:50:12.814432 |
updated_at | 2024-11-30 18:00:27.171858 |
description | Easy interface to the Flickr API |
homepage | https://github.com/spoutn1k/flickr-api |
repository | https://github.com/spoutn1k/flickr-api |
max_upload_size | |
id | 1273502 |
size | 86,054 |
This crate exists because I needed to access the flickr API and nothing was up to date.
The API is described here.
This crate uses warp
to receive HTTP callbacks and you can log in from the command line using it.
Log in using your local browser and upload a photo from a path:
// Create a client and ask it to log you in
let client = FlickrAPI::new(ApiKey {
key: String::from("Your API key"),
secret: String::from("Your API secret"),
})
.login()
.await?;
// Upload a local file
client.photos().upload_from_path(&path).await
The flickr API is extensive and this crate is very barebones. However adding support for a specific endpoint can be done in minutes ! Please create an issue if you need anything added !