Skip to content

nrdcg/namesilo

Repository files navigation

Go library for accessing the Namesilo API

GitHub tag (latest SemVer) Build Status PkgGoDev

A Namesilo API client written in Go.

namesilo is a Go client library for accessing the Namesilo API.

Example

package main

import (
	"fmt"
	"log"

	"github.com/nrdcg/namesilo"
)

func main() {
	transport, err := namesilo.NewTokenTransport("1234")
	if err != nil {
		log.Fatal(err)
	}

	client := namesilo.NewClient(transport.Client())

	params := &namesilo.AddAccountFundsParams{
		Amount:    "1000000",
		PaymentID: "acbd",
	}

	funds, err := client.AddAccountFunds(params)
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(funds)
}

API Documentation