Crate zoho_crm

Source
Expand description

§zoho-crm

Library to help interact with v2 of the Zoho CRM API.

You can read more information about the Zoho API here: https://www.zoho.com/crm/developer/docs/api/oauth-overview.html

To handle parsing response records, you will also need deserializable objects with serde:

[dependencies]
serde = { version = "1.0", features = ["derive"] }

§Example

use serde::Deserialize;
use zoho_crm::Client;

let client_id = String::from("YOUR_CLIENT_ID");
let client_secret = String::from("YOUR_CLIENT_SECRET");
let refresh_token = String::from("YOUR_REFRESH_TOKEN");

let mut client = Client::with_creds(
    None, // access token
    None, // api domain
    client_id,
    client_secret,
    refresh_token
);

#[derive(Debug, Deserialize)]
struct Account {
    id: String,
    name: String,
}

let account = client.get::<Account>("Accounts", "ZOHO_ID_HERE").unwrap();

Modules§

  • Various response objects returned from Zoho.

Structs§

  • Handles making requests to v2 of the Zoho CRM API.
  • Wrapper around a token sent back from the Zoho service.

Enums§

Functions§

  • Utility function to help a parameter list into a URL-encoded string.