https://github.com/nrdcg/porkbun
Go library for accessing the Porkbun API.
https://github.com/nrdcg/porkbun
api-client dns-client go golang porkdun
Last synced: over 1 year ago
JSON representation
Go library for accessing the Porkbun API.
- Host: GitHub
- URL: https://github.com/nrdcg/porkbun
- Owner: nrdcg
- License: mpl-2.0
- Created: 2021-05-01T16:42:49.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-13T12:44:58.000Z (over 1 year ago)
- Last Synced: 2025-03-21T04:37:10.491Z (over 1 year ago)
- Topics: api-client, dns-client, go, golang, porkdun
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 13
- Watchers: 1
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Go library for accessing the Porkbun API
[](https://github.com/nrdcg/porkbun/actions)
[](https://pkg.go.dev/github.com/nrdcg/porkbun)
[](https://goreportcard.com/report/github.com/nrdcg/porkbun)
An [Porkbun](https://porkbun.com) API client written in Go.
porkbun is a Go client library for accessing the Porkbun API.
## Examples
```go
package main
import (
"context"
"fmt"
"github.com/nrdcg/porkbun"
)
func main() {
client := porkbun.New("secret", "key")
ctx := context.Background()
yourIP, err := client.Ping(ctx)
if err != nil {
panic(err)
}
fmt.Println(yourIP)
}
```
## API Documentation
- [API docs](https://porkbun.com/api/json/v3/documentation)