egosms_sdk 1.0.0

EgoSMS Rust SDK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# EgoSms Rust SDK

Rust implementation of the EgoSms SDK

## Usage


```rust
// Make object
let mut sdk = EgoSmsSDK::new("YOUR_USERNAME", "YOUR_PASSWORD");
// or with a custom sender ID instead of the default EgoSms
let mut sdk = EgoSmsSDK::new("YOUR_USERNAME", "YOUR_PASSWORD").with_sender_id("Custom ID");
// sdk.use_sandbox(); // Use this for testing at http://sandbox.egosms.co/api/v1/json/
sdk.authenticate().unwrap(); //Returns a bool in case you need to use it
let numbers = vec!["256700000000"];
let message = "Test message from Rust";
let result = sdk.send_sms(numbers, message).unwrap();
```