(endpoint string, requireAuth bool)
| 104 | } |
| 105 | |
| 106 | func (c *Client) get(endpoint string, requireAuth bool) (int, []byte, error) { |
| 107 | return c.doRequest(http.MethodGet, endpoint, nil, "", requireAuth) |
| 108 | } |
| 109 | |
| 110 | func (c *Client) post(endpoint string, payload any, requireAuth bool) (int, []byte, error) { |
| 111 | var ( |