Skip to content

ifree92/go-namecheap-sdk

 
 

Repository files navigation

Go Namecheap SDK

Go Reference Go Report Card

Getting

$ go get github.com/namecheap/go-namecheap-sdk

Usage

Generally callers would create a namecheap.Client and make calls off of that.

import (
    "github.com/namecheap/go-namecheap-sdk"
)

// Reads environment variables
client, err := namecheap.New()

// Directly build client
client, err := namecheap.NewClient(username, apiuser string, token string, ip string, useSandbox)

Calling namecheap.New() reads the following environment variables:

Contributing

We appreciate feedback, issues and Pull Requests. You can build the project with make build in the root and run tests with make test.

If you're looking to run tests yourself you can configure the environmental variables and override the test records in client_test.go. (To make live API calls) Otherwise only mockable tests will run.

The following are contributor oriented environmental variables:

  • DEBUG: Log all responses
  • MOCKED: Force disable testClient

About

Go library for Namecheap API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.5%
  • Makefile 0.5%