use crate::core::{CreditResponse, IntoBody, Result};
device_service! {
SmsService("sms") {
send => "send",
}
}
impl SmsService {
pub async fn send_with_credits(&self, body: impl IntoBody) -> Result<CreditResponse> {
Ok(CreditResponse(
self.base.post("sms/send/credits", body).await?,
))
}
}