YourTrend
Email API & SMTP Campaigns Automations SMS Web push Messengers Unified inbox Secure mail Analytics
ENUKRUDEESFRITPLPTHIZH
Sign in Start free
SDK · Go

YourTrend SDK for Go

The Go SDK is one file using the standard library. Download it to send email and SMS and validate email addresses through the YourTrend REST API.

Install

shell
curl -O https://yourtrend.online/sdk/yourtrend.go

Send an email

go
package main

import "yourtrend"

func main() {
    c := yourtrend.New("YOUR_API_KEY")
    c.SendEmail(
        "noreply@yourdomain.com",
        "user@example.com",
        "Hello from YourTrend",
        "<h1>Hi!</h1>",
    )
}

Methods: SendEmail, SendSMS and ValidateEmail. They return *http.Response and error; read the HTTP status and response body from the response.

FAQ

Any external dependencies?

No. The Go SDK is a single standard-library file, no package manager required.

Where do I get an API key?

In the dashboard → API keys. Issue a key with only the scopes it needs.

Start sending in minutes

Free to start. Scale when you grow. Your customers get every message.