(req *http.Request, accessToken string)
| 642 | } |
| 643 | |
| 644 | func (c *Client) setAPIHeaders(req *http.Request, accessToken string) { |
| 645 | req.Header.Set("Authorization", "Bearer "+accessToken) |
| 646 | req.Header.Set("Accept", "application/vnd.api+json") |
| 647 | } |
| 648 | |
| 649 | func parseOAuthError(resp *http.Response, context string) error { |
| 650 | body, err := io.ReadAll(resp.Body) |
no test coverage detected