https://github.com/sgerrand/go-dreamhost
Go library for accessing the Dreamhost API
https://github.com/sgerrand/go-dreamhost
dreamhost-api go
Last synced: 6 months ago
JSON representation
Go library for accessing the Dreamhost API
- Host: GitHub
- URL: https://github.com/sgerrand/go-dreamhost
- Owner: sgerrand
- License: mit
- Created: 2020-01-19T09:35:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-26T16:56:49.000Z (over 6 years ago)
- Last Synced: 2024-12-29T15:44:55.991Z (over 1 year ago)
- Topics: dreamhost-api, go
- Language: Go
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-dreamhost
[](https://github.com/sgerrand/go-dreamhost/actions?query=workflow%3Atests)
[](https://codecov.io/gh/sgerrand/go-dreamhost)
`go-dreamhost` is a Go library for accessing the [Dreamhost
API](https://help.dreamhost.com/hc/en-us/articles/217560167).
## Usage
```go
import "github.com/sgerrand/go-dreamhost"
```
Construct a new Dreamhost client. For example:
```go
client := dreamhost.NewClient("your-api-key", nil)
```
## Configuration
Follow the following steps to generate a new API key:
1. Visit [Dreamhost's Web Panel](https://panel.dreamhost.com/?tree=home.api).
1. Enter a comment for this key. I suggest adding one which will make it easy
to identify later.
1. Select the functions which this API key should have access to. I suggest
limiting these to those which you want to control.
1. Click "Generate a new API Key now!"
## Authentication
The `go-dreamhost` client will pass through the API key provided as part
of creating a new client.
## License
This library is distributed under the [MIT license](LICENSE).