(url, method, data string)
| 131 | } |
| 132 | |
| 133 | func (c *apiClient) RequestString(url, method, data string) (*http.Response, error) { |
| 134 | return c.Request(url, method, bytes.NewBufferString(data)) |
| 135 | } |
| 136 | |
| 137 | func (c *apiClient) RequestJSON(url, method string, o interface{}) (*http.Response, error) { |
| 138 | data, err := json.Marshal(o) |