Skip to content

sottey/NameComGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NameComGo

Simple Go language wrapper for the name.com v4 API

Getting Started

All the calls are in separate go files in the nameapi directory.

API wide models are in the ./nameapi/objects.go file

Misc utility methods are in the ./nameapi/utility.go file

All unit tests are in separate files in the ./nameapi/tests directory

./main.go contains calls for all the example methods which are contained in the examples directory

Prerequisites

You will need a name.com account. Once you have that, log in and go to this link to set up your api tokens.

Once you have the tokens, set the following environmental variables (you can change the var names if you like by changing the entries in ./nameapi/config.go) : nameuser=[prod user name] nametoken=[prod token] nametestuser=[test user name] nametesttoken=[test token]

Installing

Either use go install OR place the nameapi folder in your project and import namecomgo/nameapi

Call Status

API Call Status
Record Model Complete
ListRecords Complete
GetRecord Complete
CreateRecord Complete
UpdateRecord Complete
DeleteRecord Complete
Dnssec Model Complete
ListDNSSECs Complete
GetDNSSEC Complete
CreateDNSSEC Complete
DeleteDNSSEC Complete
Domain Model Complete
Search Result Model Complete
ListDomains Complete
GetDomain Complete
CreateDomain Complete
EnableAutorenew Complete
DisableAutorenew Complete
RenewDomain Complete
GetAuthCodeForDomain Complete
SetNameservers Complete
LockDomain Complete
UnlockDomain Complete
CheckAvailability Complete
Search Complete
SearchStream Complete
Hello Complete
Urlforwarding Model Complete
ListURLForwardings Complete
GetURLForwarding Complete
CreateURLForwarding Complete
UpdateURLForwarding Complete
DeleteURLForwarding Complete
Emailforwarding Model Complete
ListEmailForwardings Complete
GetEmailForwarding Complete
CreateEmailForwarding Complete
UpdateEmailForwarding Complete
DeleteEmailForwarding Complete
PurchasePrivacy Complete (API issue: No way to determine purchase price)
SetContacts Complete (API Issue: 500: Internal Error if no email)
Vanitynameserver Model Complete
ListVanityNameservers Complete
GetVanityNameserver Complete
CreateVanityNameserver Complete
UpdateVanityNameserver Complete
DeleteVanityNameserver Complete
Transfer Model Complete
ListTransfers Complete
GetTransfer Complete
CreateTransfer Complete
CancelTransfer Complete

Examples

All examples are listed in ./main.go. Each example is in the examples directory, with the method name as it's filename. Note that some calls require you to change the arguments to appropriate values for your environment.

Running the tests

In the ./nameapi/tests directory simply run go test

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Sean Ottey - Initial work - sottey

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Name.com
  • The GoLang Community

About

Wrapper library for the Name.com API v4

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages