Crate flickr

source ·
Expand description

This is a Rust binding to FlickrAPI.

Example

use flickr::{FlickrAPI};
 
let mut flickr = FlickrAPI::new(
                  "MY-FLICKR-API-KEY", 
                  "MY-FLICKR-API-SECRET");
 
let res = flickr.favorites()
                .get_list()
                .perform()?;
 
println!("{:#?}", res.photos.unwrap());

The returned struct tree is mapped from JSON tree returned by Flickr REST API.

Modules

Structs in this module are constructed by FlickrAPI functions.

Structs

Takes care of authentication and provides access to Flickr API methods. The struct can be serialized/deserialized to preserve the auth state between application runs. If the struct is cloned both the old and new instances can be used in parallel.

Enums

Struct for FlickrAPI related errors.