Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/parrotmac/go-namecheap-sdk

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/parrotmac/go-namecheap-sdk

  • v1.3.0
  • Source
  • Go
  • Socket score

Version published
Created
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

Package last updated on 03 Jun 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc