/active24-go

Active24 API client in Go

Primary LanguageGoApache License 2.0Apache-2.0

Active24.cz client in Go

This is client library to interact with Active24 API. Currently, only subset of API is implemented, but contributions are always welcome.

Usage

package main

import "github.com/rkosegi/active24-go/active24"

func main() {
	client := active24.New("my-secret-api-token")

	alias := "host1"
	_, err := client.Dns().With("example.com").Create(active24.DnsRecordTypeA, &active24.DnsRecord{
		Alias: &alias,
	})
	if err != nil {
		panic(err)
	}
}