remove api key from parameter

This commit is contained in:
Pavel 2019-09-09 15:39:26 +03:00
parent ac2e0c0c7b
commit a0297dfae8

View File

@ -4034,7 +4034,7 @@ func (c *Client) Files(files FilesRequest) (FilesResponse, int, *errs.Failure) {
func (c *Client) FileUpload(reader io.Reader) (FileUploadResponse, int, *errs.Failure) {
var resp FileUploadResponse
data, status, err := c.PostRequest(fmt.Sprintf("/files/upload?apiKey=%s", c.Key), reader, "application/octet-stream")
data, status, err := c.PostRequest("/files/upload", reader, "application/octet-stream")
if err != nil && err.Error() != "" {
return resp, status, err