From 80823c47260f1716fb36d16f789b9c24d446e36a Mon Sep 17 00:00:00 2001 From: Allan Nava Date: Mon, 10 Jun 2024 16:05:58 +0200 Subject: [PATCH] solve queryparam --- compress/api_customer.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/compress/api_customer.go b/compress/api_customer.go index d736674..a7a64c8 100644 --- a/compress/api_customer.go +++ b/compress/api_customer.go @@ -32,7 +32,12 @@ func (o *compress) GetCredentials() (*Credential, error) { * @returns customer_s3 */ func (o *compress) GetCustomerS3Zone() (*CustomerS3, error) { - resp, err := o.restyGet(GET_ZONE(), BaseModel{ClientId: o.GetCliendId(), ApiKey: o.apiKey}) + // + queryParam := make(map[string]*string) + queryParam["client_id"] = o.GetCliendId() + queryParam["api_key"] = o.apiKey + // + resp, err := o.restyGet(GET_ZONE(), queryParam) if err != nil { return nil, err }