Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pph for libdns

Go Reference

This package implements the libdns interfaces for PPH using the API, allowing you to manage DNS records.

Authenticating

Important

This package supports API token authentication which is currently a beta feature of the provider.

Create an API Token in the Web-UI Vionity.de.

These tokens are not scoped, so be careful were you store this token.

API Token in UI

Example Configuration

You can either export the token by using an environment variable called API_TOKEN or the go initialization.

If you want to use the environment variable you need to pass an empty string "" to the pph.New("") function.

You can also pass the token to the pph.New("<I am a very secure token>") function of the library.

$ export API_TOKEN="<I am a very secure token>"
>
import (
  "context"

  "github.com/libdns/libdns"
  "github.com/libdns/pph"
)

func main() {
  zone := "zone.example.com"
  // uses the data from the API_TOKEN environment variable
  p := pph.Provider{
      APIToken: "",
  }
  ctx := context.Background()
  records, err := p.GetRecords(ctx, zone)
}

Thie example uses the provider struct directly.

// With token Auth
p := pph.Provider{
    APIToken: "<I am a very secure token>",
}

About

A libdns implementation for PrePaidHoster PPH (prepaid-hoster.de)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

Generated from libdns/template