-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: Add example for fabricv4 client to get connections #60
Conversation
thogarty
commented
May 22, 2024
- Add example to fabricv4 for getting connections
- Shows how to create the client and use one of its simple methods on our API
retryClient.RetryWaitMax = time.Second * 60 | ||
standardClient := retryClient.StandardClient() | ||
|
||
baseURLParsed, _ := url.Parse(baseURL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Note, I'm assuming the default URL used by the fabricv4
client is already https://api.equinix.com
). To keep the example as focused as possible, I recommend taking out the customized ServerConfiguration
.
…pecific package, and add comments with details on package inclusion
For some reason CI is running into an uncommitted change in the example, but I'm not sure why...maybe try running |
Correct. It was modifying imports on the example to keep github specific imports separate from the Go standard library. Good call. |
This PR is included in version 0.40.0 🎉 |