Crates.io | whatspp-cloud-api-rs |
lib.rs | whatspp-cloud-api-rs |
version | 0.1.0 |
source | src |
created_at | 2022-05-21 20:57:39.13141 |
updated_at | 2022-05-21 20:57:39.13141 |
description | Whatsapp Cloud API Rust Client |
homepage | https://github.com/sajuthankappan/whatsapp-cloud-api-rs |
repository | https://github.com/sajuthankappan/whatsapp-cloud-api-rs |
max_upload_size | |
id | 590868 |
size | 9,018 |
RWhatsapp Cloud API Rust Client
let access_token = "<access_token>";
let to = "<to>";
let template_name = "hello_world";
let language = "en_US";
let template = Template::new(template_name, language);
let message = Message::from_template(&to, template);
let client = WhatsppClient::new(&access_token);
client.send_message(&message).await?;
For more examples, please see the tests folder