use linkmobility::{ account::Account, address::Address, client::Client, rest_api::{PlatformID, PlatformPartnerID, SMS}, }; #[tokio::main] async fn main() { static USERNAME: &str = "fkwIzx6c"; //"gvwXYp4s"; static PASSWORD: &str = "AaVF95VBS9jHX3CU"; static SOURCE: &str = "46768108001"; //"4796223160"; static DESTINATION: &str = "+46760281011"; static PLATFORM_ID: &str = "COMMON_API"; static PLATFORM_PARTNER_ID: &str = "23142"; //"22753"; let client = Client::new(Account::new( USERNAME, PASSWORD, "https://n-eu.linkmobility.io/", )); let response = SMS::with_text( Address::new(SOURCE.to_string()), Address::new(DESTINATION.to_string()), PlatformID::new(PLATFORM_ID), PlatformPartnerID::new(PLATFORM_PARTNER_ID), "Sms via Link Mobility", ) .send(&client) .await .expect("error"); println!("{response:?}"); }