Crate diffbot [] [src]

This library provides an API client for Diffbot

See also the diffbot documentation.

Example

extern crate diffbot;
use diffbot::*;

fn main() {
    let client = Diffbot::v3("insert_your_token_here");
    match client.call(API::Analyze, "http://www.diffbot.com") {
        Ok(result) =>
            println!("{:?}", result),
        Err(Error::Api(code, msg)) =>
            println!("API returned error {}: {}", code, msg),
        Err(err) =>
            println!("Other error: {:?}", err),
    };
}

Structs

Diffbot

Diffbot API client.

Enums

API

One of the possible diffbot API.

Error

Error occuring during a call.

Type Definitions

DiffbotResult

Result from a call.