Skip to content

issyl0/go-improvmx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.