Documentation ¶
Index ¶
Constants ¶
View Source
const AgreementRoot = "https://api.ote-godaddy.com/v1/domains/agreements"
AgreementRoot is the location for agreeing to purchasing under TLD
View Source
const AvailableRoot = "https://api.ote-godaddy.com/v1/domains/available"
AvailableRoot is the address for the domain availability API endpoint
View Source
const PurchaseRoot = "https://api.ote-godaddy.com/v1/domains/purchase"
PurchaseRoot location for purchasing domain
Variables ¶
View Source
var ErrNoKeySecret = errors.New("Key or secret not supplied")
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Address1 string `json:"address1,omitempty"` City string `json:"city,omitempty"` State string `json:"state,omitempty"` PostalCode string `json:"postalCode,omitempty"` Country string `json:"country,omitempty"` }
Address is used for the Contact object
type AvailableResponse ¶
type AvailableResponse struct { Available bool `json:"available"` Domain string `json:"domain"` Definitive bool `json:"definitive"` Price uint64 `json:"price"` Currency string `json:"currency"` Period int `json:"period"` }
AvailableResponse is the structure that contains how responses are given by the GoDaddy API
type Client ¶
func (*Client) IsAvailable ¶
IsAvailable
type Consent ¶
type Consent struct { AgreementKeys []string `json:"agreementKeys,omitempty"` AgreedBy string `json:"agreedBy,omitempty"` AgreedAt string `json:"agreedAt,omitempty"` }
Consent is needed for TLDs that need to be purchased
type Contact ¶
type Contact struct { First string `json:"nameFirst,omitempty"` Middle string `json:"nameMiddle,omitempty"` Last string `json:"nameLast,omitempty"` Organization string `json:"organization,omitempty"` JobTitle string `json:"jobTitle,omitempty"` Email string `json:"email,omitempty"` Phone string `json:"phone,omitempty"` Fax string `json:"fax,omitempty"` AddressMailing Address `json:"addressMailing,omitempty"` }
Contact is what is listed in the whois information if privact isn't selected
type DomainPurchase ¶
type DomainPurchase struct { Domain string `json:"domain,omitempty"` Consent Consent `json:"consent,omitempty"` Period int32 `json:"period,omitempty"` NameServers []string `json:"nameServers,omitempty"` RenewAuto bool `json:"renewAuto,omitempty"` Privacy bool `json:"privacy,omitempty"` ContactRegistrant Contact `json:"contactRegistrant,omitempty"` ContactAdmin Contact `json:"contactAdmin,omitempty"` ContactTech Contact `json:"contactTech,omitempty"` ContactBilling Contact `json:"contactBilling,omitempty"` }
DomainPurchase is the object needed for purchasing a domain
type DomainPurchaseResponse ¶
type DomainPurchaseResponse struct { // The actual response OrderID int32 `json:"orderId,omitempty"` ItemCount int32 `json:"itemCount,omitempty"` Total int32 `json:"total,omitempty"` Currency string `json:"currency,omitempty"` // Error Code string `json:"code"` Message string `json:"message"` Name string `json:"name"` }
DomainPurchaseResponse is the response object from buying a domain
type LegalAgreementResponse ¶
type LegalAgreementResponse struct { AgreementKey string `json:"agreementKey,omitempty"` Title string `json:"title,omitempty"` Url string `json:"url,omitempty"` Content string `json:"content,omitempty"` // Used for errors Code string `json:"code,omitempty"` Message string `json:"message,omitempty"` }
LegalAgreement is an object for gettin the Consent key
Click to show internal directories.
Click to hide internal directories.