-
Notifications
You must be signed in to change notification settings - Fork 0
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
Adding resources to baton-vgs #1
Conversation
mchavez
commented
Mar 15, 2024
•
edited
Loading
edited
- Add docker-compose file
- Add VGS client
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.
I think we should merge this PR, but clean up the http & url handing in a new PR. The baton SDK has quite a few helpers that we can take advantage of.
|
||
func (v *VGSClient) GetOrganizationUsers(ctx context.Context, orgId string) ([]OrganizationUser, error) { | ||
v.InitHttpClient() | ||
req, err := http.NewRequestWithContext(ctx, http.MethodGet, v.endpoint+"/"+orgId+"/users", nil) |
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.
Use url.joinpath here. Or even better: use the baton uhttp helpers.