BareDo sends an API request and lets you handle the api response. If an error or API Error occurs, the error will contain more information. Otherwise, you are supposed to read and close the response's Body. If rate limit is exceeded and reset time is in the future, BareDo returns *RateLimitError imm
(req *http.Request)
| 1261 | // and reset time is in the future, BareDo returns *RateLimitError immediately |
| 1262 | // without making a network API call. |
| 1263 | func (c *Client) BareDo(req *http.Request) (*Response, error) { |
| 1264 | return c.bareDo(c.client, req) |
| 1265 | } |
| 1266 | |
| 1267 | // bareDoIgnoreRedirects has the exact same behavior as BareDo but stops at the first |
| 1268 | // redirection code returned by the API. If a redirection is returned by the api, bareDoIgnoreRedirects |