domainr

package module
v0.0.0-...-1f01f6f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2013 License: MIT Imports: 4 Imported by: 0

README

domainr-go GoDoc

Domai.nr API wrapper for Go(lang).

// Get the url to register a domain
domainr.Register("myfancydomain.com", "")
// Get the url of a specific registrar to register a domain
domainr.Register("myfancydomain.com", "gandi.net")
// Get information about a domain
domainr.Json(domainr.METHOD_INFO, "github.io", "")
// Get information about the domains matching your query
domainr.Json(domainr.METHOD_SEARCH, "myfancydomain", "")
// The optional third parameter at domainr.Json is a callback as defined in
// the API documentation https://domai.nr/api/docs/json

Install

go get github.com/mvader/domainr-go

Documentation

Overview

domainr is a wrapper for the domai.nr API written in Go.

// Get the url to register a domain
domainr.Register("myfancydomain.com", "")
// Get the url of a specific registrar to register a domain
domainr.Register("myfancydomain.com", "gandi.net")
// Get information about a domain
domainr.Json(domainr.METHOD_INFO, "github.io", "")
// Get information about the domains matching your query
domainr.Json(domainr.METHOD_SEARCH, "myfancydomain", "")
// The optional third parameter at domainr.Json is a callback as defined in
// the API documentation https://domai.nr/api/docs/json

Index

Constants

View Source
const (
	BASE_URI      = "https://domai.nr/api"
	METHOD_SEARCH = "search"
	METHOD_INFO   = "info"
)

Variables

This section is empty.

Functions

func Json

func Json(method, query, callback string) (interface{}, error)

func Register

func Register(domain, registrar string) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL