Socket
Socket
Sign inDemoInstall

github.com/parrotmac/go-namecheap-sdk

Package Overview
Dependencies
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/parrotmac/go-namecheap-sdk


Version published

Readme

Source

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:

  • NAMECHEAP_USERNAME: Username: e.g. adamdecaf
  • NAMECHEAP_API_USER: ApiUser: e.g. adamdecaf
  • NAMECHEAP_TOKEN: From https://ap.www.namecheap.com/Profile/Tools/ApiAccess
  • NAMECHEAP_IP: Your IP (must be whitelisted)
  • NAMECHEAP_USE_SANDBOX: Use sandbox environment

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

FAQs

Last updated on 03 Jun 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc