From a0297dfae8a5f9d1058ba938db27179406c354bf Mon Sep 17 00:00:00 2001 From: Pavel Date: Mon, 9 Sep 2019 15:39:26 +0300 Subject: [PATCH] remove api key from parameter --- v5/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v5/client.go b/v5/client.go index 50970b6..2953ccc 100644 --- a/v5/client.go +++ b/v5/client.go @@ -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