-
Notifications
You must be signed in to change notification settings - Fork 24
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 support for the new Query Volume API endpoint #164
Conversation
dnsimple/dns_analytics.go
Outdated
// Query gets DNS Analytics data for an account | ||
// | ||
// See https://developer.dnsimple.com/v2/dns_analytics/#query | ||
func (s *DnsAnalyticsService) Query(ctx context.Context, accountID string, options *ListOptions) (*DnsAnalyticsResponse, error) { |
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.
Generally, we try to match the endpoint call method with the operation ID in the OpenAPI spec, I could not find an OpenAPI spec entry for this endpoint so I could not see how it compares. In case they do not match we should maybe include an example in the readme.
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.
👍 We will be updating the OpenAPI spec in the following days. Let's come back to this then.
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.
LGTM. I've left some comments for your consideration.
566c652
to
4866d73
Compare
- Response payloads will encode it as a string - We will require an int64 as query parameter for convenience
Fixes #163
In this PR: