Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 604 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 604 Bytes

go-improvmx

A Golang API client for ImprovMX, my email forwarding service of choice.

Usage

package main

import (
	"os"

	improvmx "github.com/issyl0/go-improvmx"
)

func main() {
	client := improvmx.NewClient(os.Getenv("IMPROVMX_API_TOKEN"))

	client.CreateDomain("example.com")
	client.CreateEmailForward("example.com", "hi", "[email protected]")
	client.UpdateEmailForward("example.com", "hi", "[email protected],[email protected]")
	client.DeleteEmailForward("example.com", "hi")
	client.DeleteDomain("example.com")
}

TODO

  • Tests.