go-dreamhost is a Go library for accessing the Dreamhost API.
import "github.com/sgerrand/go-dreamhost"Construct a new Dreamhost client. For example:
client := dreamhost.NewClient("your-api-key", nil)Follow the following steps to generate a new API key:
- Visit Dreamhost's Web Panel.
- Enter a comment for this key. I suggest adding one which will make it easy to identify later.
- Select the functions which this API key should have access to. I suggest limiting these to those which you want to control.
- Click "Generate a new API Key now!"
The go-dreamhost client will pass through the API key provided as part of creating a new client.
This library is distributed under the MIT license.