APIError represents a standard error response from the API.
| 56 | |
| 57 | // APIError represents a standard error response from the API. |
| 58 | type APIError struct { |
| 59 | Error struct { |
| 60 | Message string `json:"message"` |
| 61 | Type string `json:"type"` |
| 62 | } `json:"error"` |
| 63 | } |
| 64 | |
| 65 | // Do sends a request and decodes the JSON response into the provided 'out'. |
| 66 | // Pass a pointer as 'out' (e.g. &myStruct). If out is nil, the response body is discarded. |
nothing calls this directly
no outgoing calls
no test coverage detected