3 unstable releases
0.2.0 | Jun 23, 2024 |
---|---|
0.1.1 | Jun 16, 2024 |
0.1.0 | Jun 16, 2024 |
#1199 in #command-line
122 downloads per month
27KB
667 lines
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.
Usage
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
Coverage
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 !
Dependencies
~17–28MB
~402K SLoC