Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sgerrand/go-dreamhost
Go library for accessing the Dreamhost API
https://github.com/sgerrand/go-dreamhost
dreamhost-api go
Last synced: 11 days 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-26T16:56:49.000Z (almost 5 years ago)
- Last Synced: 2024-11-07T21:30:22.315Z (2 months 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
[![Test Status](https://github.com/sgerrand/go-dreamhost/workflows/tests/badge.svg)](https://github.com/sgerrand/go-dreamhost/actions?query=workflow%3Atests)
[![Test Coverage](https://codecov.io/gh/sgerrand/go-dreamhost/branch/master/graph/badge.svg)](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).