Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/issyl0/go-improvmx

An ImprovMX API client
https://github.com/issyl0/go-improvmx

golang improvmx rest-api-client

Last synced: 25 days ago
JSON representation

An ImprovMX API client

Awesome Lists containing this project

README

        

# go-improvmx

A Golang API client for [ImprovMX](https://improvmx.com), my email forwarding service of choice.

## Usage

```golang
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.