Unofficial GoLang SDK for the Relay42 API
go get github.com/ddevcap/relay42-go
Import into your Go project or library.
import (
"github.com/ddevcap/relay42-go"
)
Create an API client in order to interact with the Relay42 API endpoints.
username := "your-username"
password := "your-password"
client := relay42.NewClient(username, password)
You need to set the Rely42 site id.
siteID := 0
client.Site(siteID)
In debug mode, all outgoing http requests are printed nicely in the form of curl command so that you can easly drop into your command line to debug specific request.
client.Debug = true
[WIP]
MIT