Go Namecheap SDK
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"
)
client, err := namecheap.New()
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 responsesMOCKED
: Force disable testClient