We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b1c4dc commit 3d3aff4Copy full SHA for 3d3aff4
api/api.go
@@ -129,6 +129,17 @@ const (
129
apiRecommendations = "v2/recommendations/%s"
130
)
131
132
+// WithApiV2 configures the client to use the API version 2 (/api/v2)
133
+// for common API endpoints
134
+//
135
+// (no-op) DEPRECATED
136
+func WithApiV2() Option {
137
+ return clientFunc(func(c *Client) error {
138
+ c.log.Warn("WithApiV2() has been deprecated, all clients now default to APIv2")
139
+ return nil
140
+ })
141
+}
142
+
143
// ApiVersion returns the API client version
144
func (c *Client) ApiVersion() string {
145
return c.apiVersion
0 commit comments