You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andreas Peters 7020739bf8
change price type to string
2 months ago
.gitignore add NameserverInfoRequest struct 1 year ago
.golangci.toml refactor: linting. 1 year ago
.travis.yml chore: migrate to go module. 8 months ago
LICENSE Initial commit 3 years ago
Makefile chore: migrate to go module. 8 months ago
README.md doc: adds badges. 1 year ago
account.go refactor: linting. 1 year ago
contact.go refactor: linting. 1 year ago
domain.go change price type to string 2 months ago
go.mod chore: migrate to go module. 8 months ago
go.sum chore: migrate to go module. 8 months ago
goinwx.go refactor: linting. 1 year ago
nameserver.go refactor: linting. 1 year ago
response.go refactor: move structs. 1 year ago

README.md

INWX Go API client

Build Status GoDoc Go Report Card

This go library implements some parts of the official INWX XML-RPC API.

API

package main

import (
	"log"

	"github.com/nrdcg/goinwx"
)

func main() {
	client := goinwx.NewClient("username", "password", &goinwx.ClientOptions{Sandbox: true})

	err := client.Account.Login()
	if err != nil {
		log.Fatal(err)
	}

	defer func() {
		if err := client.Account.Logout(); err != nil {
			log.Printf("inwx: failed to logout: %v", err)
		}
	}()

	var request = &goinwx.NameserverRecordRequest{
		Domain:  "domain.com",
		Name:    "foo.domain.com.",
		Type:    "TXT",
		Content: "aaa",
		Ttl:     300,
	}

	_, err = client.Nameservers.CreateRecord(request)
	if err != nil {
		log.Fatal(err)
	}
}

Supported Features

Full API documentation can be found here.

The following parts are implemented:

  • Account
    • Login
    • Logout
    • Lock
    • Unlock (with mobile TAN)
  • Domains
    • Check
    • Register
    • Delete
    • Info
    • GetPrices
    • List
    • Whois
  • Nameservers
    • Check
    • Create
    • Info
    • List
    • CreateRecord
    • UpdateRecord
    • DeleteRecord
    • FindRecordById
  • Contacts
    • List
    • Info
    • Create
    • Update
    • Delete

Contributions

Your contributions are very appreciated.