module
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Jul 4, 2021
License: MIT
Opens a new window with license information.
README
¶
Usage
package main
import (
"fmt"
"os"
"github.com/mimuret/golang-iij-dpf/pkg/api"
"github.com/mimuret/golang-iij-dpf/pkg/apis/core"
)
func main() {
token := os.Getenv("DPF_TOKEN")
cl := api.NewClient(token, "", nil)
zoneList := &core.ZoneList{}
searchParam := &core.ZoneListSearchKeywords{Name: api.KeywordsString{"example.jp"}}
req, err := cl.ListALL(zoneList, searchParam)
if err != nil {
panic(err)
}
fmt.Printf("RequestID: %s\n", req)
for _, item := range zoneList.Items {
fmt.Println(item)
}
}
Directories
¶
pkg
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.