use crate::client::Sentd;
use crate::error::Error;
use crate::types::*;
pub struct Batch {
client: Sentd,
}
impl Batch {
pub(crate) fn new(client: Sentd) -> Self {
Self { client }
}
pub async fn send(&self, request: SendBatchRequest) -> Result<SendBatchResponse, Error> {
self.client.post("/api/batch", &request).await
}
}