Skip to content
/ nodion Public

Go library for accessing the Nodion DNS API.

License

Notifications You must be signed in to change notification settings

nrdcg/nodion

Repository files navigation

Go library for accessing the Nodion DNS API

Build Status PkgGoDev Go Report Card

A Nodion API client written in Go.

nodion is a Go client library for accessing the Nodion DNS API.

Examples

package main

import (
	"context"
	"fmt"
	"log"

	"github.com/nrdcg/nodion"
)

const apiToken = "xxx"

func main() {
	client, err := nodion.NewClient(apiToken)
	if err != nil {
		log.Fatal(err)
	}

	ctx := context.Background()

	zones, err := client.CreateZone(ctx, "example.com")
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(zones)
}

API Documentation