{"modulePath":"github.com/twitchdev/twitch-cli","version":"v1.1.25","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0\n\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0\n\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0\n\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0\n\n## Functions\n\n```go\nfunc GetClientInformation() (clientInformation, error)\n```\n\n```go\nfunc NewRequest(method string, path string, queryParameters []string, body []byte, prettyPrint bool, autopaginate *int, verbose bool) error\n```\nNewRequest is used to request data from the Twitch API using a HTTP GET request- this function is a wrapper for the apiRequest function that handles the network call\n\n```go\nfunc ValidOptions(method string) []string\n```\nValidOptions returns a list of supported endpoints given a specified method as noted in the map endpointMethodSupports, which is located in resources.go of this package.\n\n## Types\n\n```go\ntype RLClient struct {\n\tRateLimiter *rate.Limiter\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewClient(l *rate.Limiter) *RLClient\n```\n\n```go\nfunc (c *RLClient) Do(req *http.Request) (*http.Response, error)\n```\n\n","path":"github.com/twitchdev/twitch-cli/internal/api","name":"api","synopsis":"","isRedistributable":true}
