安装
curl -O https://yourtrend.online/sdk/yourtrend.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, push (web push) and validateEmail. Each returns the HTTP status and the response body.
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.
此页面是通过搜索找到的
真实的搜索查询将人们带到这里——高亮的查询打开匹配的页面。