https://github.com/spoutn1k/flickr-api
Flickr API crate
https://github.com/spoutn1k/flickr-api
Last synced: 10 days ago
JSON representation
Flickr API crate
- Host: GitHub
- URL: https://github.com/spoutn1k/flickr-api
- Owner: spoutn1k
- Created: 2024-06-16T12:26:31.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-30T18:00:06.000Z (8 months ago)
- Last Synced: 2025-06-26T14:53:26.593Z (19 days ago)
- Language: Rust
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This crate exists because I needed to access the [flickr](https://www.flickr.com) API and nothing was up to date.
The API is described [here](https://www.flickr.com/services/api/).
This crate uses [`warp`](https://github.com/seanmonstar/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:
```rs
// 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 !