[−][src]Crate zoho_crm
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
response | Various response objects returned from Zoho. |
Structs
Client | Handles making requests to v2 of the Zoho CRM API. |
TokenRecord | Wrapper around a token sent back from the Zoho service. |
Enums
ClientError | Various errors returned by the API. |
Functions
parse_params | Utility function to help a parameter list into a URL-encoded string. |