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", "person@realdomain.com")
	client.UpdateEmailForward("example.com", "hi", "person@realdomain.com,another@realdomain.com")
	client.DeleteEmailForward("example.com", "hi")
	client.DeleteDomain("example.com")
}

TODO

  • Tests.