Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yournotify Go

Go client for the current Yournotify API.

Install

go get github.com/yournotify/yournotify-go

Quickstart

package main

import (
	"fmt"

	yournotify "github.com/yournotify/yournotify-go"
)

func main() {
	client := yournotify.NewClient("YOURNOTIFY_API_KEY")

	if _, err := client.ValidateAuth(); err != nil {
		panic(err)
	}

	res, err := client.SendEmail("Welcome", "Welcome", "<p>Hello</p>", "Hello", "draft", "noreply@smtp.yournotify.net", []map[string]any{
		{"email": "person@example.com", "name": "Person"},
	})
	if err != nil {
		panic(err)
	}
	fmt.Println(res)
}

Supported Surface

  • Auth: ValidateAuth, GetProfile
  • Campaigns: CreateCampaign, SendEmail, SendSMS, SendWhatsApp, SendPush, SendInApp, TestCampaign, analytics helpers
  • Contacts and lists: create, read, update, delete helpers
  • Rewards: rewards, products, analytics, submissions, send helpers
  • Automation: Identify, Track

The client returns structured API errors for non-2xx responses.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages