mirror of
https://github.com/retailcrm/api-client-go.git
synced 2024-11-25 14:26:04 +03:00
remove api key from parameter
This commit is contained in:
parent
ac2e0c0c7b
commit
a0297dfae8
@ -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) {
|
func (c *Client) FileUpload(reader io.Reader) (FileUploadResponse, int, *errs.Failure) {
|
||||||
var resp FileUploadResponse
|
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() != "" {
|
if err != nil && err.Error() != "" {
|
||||||
return resp, status, err
|
return resp, status, err
|
||||||
|
Loading…
Reference in New Issue
Block a user