Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spoutn1k/flickr-api
Flickr API crate
https://github.com/spoutn1k/flickr-api
Last synced: 27 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 (7 months ago)
- Default Branch: master
- Last Pushed: 2024-09-27T21:27:14.000Z (3 months ago)
- Last Synced: 2024-11-27T21:07:22.574Z (about 1 month ago)
- Language: Rust
- Size: 61.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 !