• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

gen/H02-Aug-2019-

samples/H02-Aug-2019-

.gitignoreH A D02-Aug-201915

.golangci.tomlH A D02-Aug-20191 KiB

.travis.ymlH A D02-Aug-2019288

LICENSEH A D02-Aug-201916.3 KiB

MakefileH A D02-Aug-2019613

auth.goH A D02-Aug-20191.4 KiB

go.modH A D02-Aug-2019132

go.sumH A D02-Aug-2019791

model.goH A D02-Aug-201921.6 KiB

model_test.goH A D02-Aug-201926.6 KiB

namesilo.goH A D02-Aug-20191.2 KiB

params.goH A D02-Aug-201919.7 KiB

readme.mdH A D02-Aug-20191 KiB

zz_gen_client.goH A D02-Aug-201964 KiB

zz_gen_client_test.goH A D02-Aug-201926.6 KiB

readme.md

1# Go library for accessing the Namesilo API
2
3[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/nrdcg/namesilo.svg)](https://github.com/nrdcg/namesilo/releases)
4[![GoDoc](https://godoc.org/github.com/nrdcg/namesilo?status.svg)](https://godoc.org/github.com/nrdcg/namesilo)
5[![Build Status](https://travis-ci.com/nrdcg/namesilo.svg?branch=master)](https://travis-ci.com/nrdcg/namesilo)
6
7A Namesilo API client written in Go.
8
9namesilo is a Go client library for accessing the Namesilo API.
10
11## Example
12
13
14```go
15package main
16
17import (
18	"fmt"
19	"log"
20
21	"github.com/nrdcg/namesilo"
22)
23
24func main() {
25	transport, err := namesilo.NewTokenTransport("1234")
26	if err != nil {
27		log.Fatal(err)
28	}
29
30	client := namesilo.NewClient(transport.Client())
31
32	params := &namesilo.AddAccountFundsParams{
33		Amount:    "1000000",
34		PaymentID: "acbd",
35	}
36
37	funds, err := client.AddAccountFunds(params)
38	if err != nil {
39		log.Fatal(err)
40	}
41
42	fmt.Println(funds)
43}
44```
45
46## API Documentation
47
48- [API docs](https://www.namesilo.com/api_reference.php)
49