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 new admin access for orgs and profile #30

Merged
merged 2 commits into from
Apr 18, 2024
Merged

Add new admin access for orgs and profile #30

merged 2 commits into from
Apr 18, 2024

Conversation

telegrapher
Copy link
Collaborator

Access profile and organization admin APIs using a service token

Copy link
Contributor

@andresbott andresbott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small question otherwise LGTM

// given access token. It returns a non-nil response on success or an error on
// failure.
func (c *Client) GetAdminOrganizationsWithContext(ctx context.Context, r *GetAdminOrganizationsRequest) (*GetAdminOrganizationsResponse, error) {
if r.ApiVersion == "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it make sense to expose the API version? i assume every version will have a different payload, hence, a different version would need to be supported by the method.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it does.

The changes between versions are generally small and transparent to the purpose of the library. Changes like adding a new value or a new field don't need new support and it is practical for the clients to update their API version used easily as they need.

@telegrapher telegrapher merged commit 7c7bc21 into master Apr 18, 2024
5 checks passed
@telegrapher telegrapher deleted the admin_apis branch April 18, 2024 11:50
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

Successfully merging this pull request may close these issues.

2 participants