fix: validate template UUIDs and parse Plunk validation errors
This commit is contained in:
@@ -74,7 +74,7 @@ use serde_json::json;
|
||||
async fn main() -> Result<(), plunk_rs::Error> {
|
||||
let client = Client::new("sk_your_plunk_api_key")?;
|
||||
|
||||
let email = Email::template("user@example.com", "tpl_xxxxxxxx")?
|
||||
let email = Email::template("user@example.com", "550e8400-e29b-41d4-a716-446655440000")?
|
||||
.with_data(json!({ "first_name": "Ada" }))?;
|
||||
|
||||
client.send(&email).await?;
|
||||
|
||||
Reference in New Issue
Block a user