Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.08 KB

README.md

File metadata and controls

54 lines (37 loc) · 1.08 KB

License: MIT Build Status

relay42-go

Unofficial GoLang SDK for the Relay42 API

Install

go get github.com/ddevcap/relay42-go

Getting started

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)
SiteID

You need to set the Rely42 site id.

siteID := 0
client.Site(siteID)
Debug mode

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

Documentation/References

GoLang

Effective Go

Contributing

[WIP]

License

MIT