Skip to content

rust library for communicating with Engagespot REST API. Send multi-channel notifications from your rust app.

Notifications You must be signed in to change notification settings

Engagespot/engagespot-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Engagespot Rust Library

Crates Badge Docs.rs Badge

Official rust library for communicating with Engagespot REST API. Send multi-channel notifications from your rust app.

You need Engagespot API KEY and API SECRET from your dashboard to get started. If you don't have one, just get one for free.

Installation

Add to your Cargo.toml:

cargo add engagespot

Getting Started

 use engagespot::{Engagespot, NotificationBuilder};

 // A reactor like tokio or async-std is required to run the async code.
 #[tokio::main(flavor = "current_thread")]
 async fn main() {
   // initialize engagespot client by passing the api_key and api_secret
   let client = Engagespot::new("api_key", "api_secret");

 let notification = NotificationBuilder::new("title", &vec!["[email protected]".to_string()]).build();
 let response = client.send(&notification).await.unwrap_or_else(|err: String| format!("Error: {}", err));
 println!("new res is {}", response);

License

This code is free to use under the terms of the MIT license.

About

rust library for communicating with Engagespot REST API. Send multi-channel notifications from your rust app.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published