dnscontrol/vendor/github.com/billputer/go-namecheap
Craig Peterson e4ad084494 update some dependencies (#208)
* update some dependencies

* some more

* add these

* remove things?

* regen
2017-09-18 15:35:10 -04:00
..
dns.go update some dependencies (#208) 2017-09-18 15:35:10 -04:00
domain.go migrate code for github 2016-08-22 18:31:50 -06:00
LICENSE migrate code for github 2016-08-22 18:31:50 -06:00
Makefile fix go-namecheap vendor, already applied upstream (#100) 2017-05-10 07:50:05 -06:00
namecheap.go migrate code for github 2016-08-22 18:31:50 -06:00
ns.go migrate code for github 2016-08-22 18:31:50 -06:00
README.md migrate code for github 2016-08-22 18:31:50 -06:00
registrant.go migrate code for github 2016-08-22 18:31:50 -06:00

go-namecheap

A Go library for using the Namecheap API.

Build Status: Build Status

Examples

package main
import (
  "fmt"
  namecheap "github.com/billputer/go-namecheap"
)

func main() {
  apiUser := "billwiens"
  apiToken := "xxxxxxx"
  userName := "billwiens"

  client := namecheap.NewClient(apiUser, apiToken, userName)

  // Get a list of your domains
  domains, _ := client.DomainsGetList()
  for _, domain := range domains {
    fmt.Printf("Domain: %+v\n\n", domain.Name)
  }

}

For more complete documentation, load up godoc and find the package.

Development

Pull requests welcome!

Attribution

Most concepts and code borrowed from the excellent go-dnsimple.