WithAPIKey returns a RequestOption that sets the client setting "api_key".
(value string)
| 270 | |
| 271 | // WithAPIKey returns a RequestOption that sets the client setting "api_key". |
| 272 | func WithAPIKey(value string) RequestOption { |
| 273 | return requestconfig.RequestOptionFunc(func(r *requestconfig.RequestConfig) error { |
| 274 | r.SetAPIKey(value) |
| 275 | return nil |
| 276 | }) |
| 277 | } |
| 278 | |
| 279 | // WithAdminAPIKey returns a RequestOption that sets the client setting "admin_api_key". |
| 280 | func WithAdminAPIKey(value string) RequestOption { |
searching dependent graphs…