Documentation ¶
Index ¶
- func AddQuery(httpRequest *http.Request, queries map[string]string)
- func CloseBody(closer io.ReadCloser)
- func CreateGetRequest(url string) *http.Request
- func CreatePostRequest(url string, data interface{}) *http.Request
- func GetRateLimitLimit(httpResponse *http.Response) (rateLimitLimit int)
- func GetRateLimitRemaining(httpResponse *http.Response) (rateLimitRemaining int)
- func IsRateLimitResetOK(httpResponse *http.Response) (bool, int)
- func IsResponseOK(httpResponse *http.Response) bool
- func MakeRequest(httpRequest *http.Request) (httpResponse *http.Response, err error)
- type Error
- type ErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseBody ¶
func CloseBody(closer io.ReadCloser)
func CreateGetRequest ¶
func CreatePostRequest ¶
func GetRateLimitLimit ¶
func GetRateLimitRemaining ¶
func IsResponseOK ¶
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Errors []Error `json:"errors"`
}
Click to show internal directories.
Click to hide internal directories.