feedly_api
Rust implementation of the feedly API.
Usage
Add the dependency to your Cargo.toml
.
[]
= "0.2"
Getting up and running
Generate the URL to the login page
The client id and secret are issued by feedly for each client on formal request (can also be denied by feedly).
let login_url = login_url.unwrap;
let redirect_base_url = redirect_uri.unwrap;
The login_url
will redirect to a URL with the base of redirect_base_url
. This URL contains the AuthCode
and is needed for the next step.
Parsing the redirected URL after successful login
let auth_code = parse_redirected_url.unwrap;
Getting the access_token
With the AuthCode
form the previous step the access_token
and friends can finally be requested.
let client = new;
let token_response = request_auth_token.unwrap;
Creating a FeedlyApi instance
let access_token_expires = parse_expiration_date.unwrap;
let feedly_api = new.unwrap;