Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ability to specify api url #59

Closed
vtolstov opened this issue Jul 7, 2015 · 2 comments
Closed

add ability to specify api url #59

vtolstov opened this issue Jul 7, 2015 · 2 comments

Comments

@vtolstov
Copy link

vtolstov commented Jul 7, 2015

please add ability to specify api url, because some providers have DO like api to creating vps, and previously packer use handmade lib to support DO and have this ability, but in last release it switches to this library and i miss this feature.

@bryanl
Copy link
Contributor

bryanl commented Jul 7, 2015

You can specify the API URL by updated the BaseURL field of godo.Client. https://github.com/digitalocean/godo/blob/master/godo.go#L36

// set up oauthClient like in the README
client := godo.NewClient(oauthClient)
u, err := url.Parse("http://example.com")
client.BaseURL = u

@vtolstov
Copy link
Author

vtolstov commented Jul 7, 2015

Thanks!

@vtolstov vtolstov closed this as completed Jul 7, 2015
@vtolstov vtolstov reopened this Jul 7, 2015
@bryanl bryanl closed this as completed Sep 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants