Rust wrapper for the Instapaper public API. The official API's documentation can be found
here. Note that in order to receive a consumer key and secret
to access the API you must fill out this
form. See the Client struct for all methods made available.
Installation
Add instapaper = "*" to your Cargo.toml.
Example
extern crate dotenv;
use dotenv;
use env;
dotenv.ok;
for in vars
// Instapaper uses the archaic Oauth1 which requires the username and password in order to
// receive an oauth token required for further operations.
let client = authenticate.expect;
// Now the `oauth_key` and `oauth_secret` on `instapaper::Client` has been set to make it valid
// for API actions
client.add.unwrap;
println!;
println!;
println!;
println!;
println!;
println!;
println!;
// You can save the Oauth authentication details to e.g. an enviroment file or wherever you
// store secrets and discard the username and password.
let client2 = Client ;
println!;