diff --git a/lib/Service/DocusignAPIService.php b/lib/Service/DocusignAPIService.php index 3c6a105..51dc994 100644 --- a/lib/Service/DocusignAPIService.php +++ b/lib/Service/DocusignAPIService.php @@ -322,18 +322,7 @@ public function apiRequest(?string $baseUrl, string $accessToken, string $refres if (count($params) > 0) { if ($method === 'GET') { - // manage array parameters - $paramsContent = ''; - foreach ($params as $key => $value) { - if (is_array($value)) { - foreach ($value as $oneArrayValue) { - $paramsContent .= $key . '[]=' . urlencode($oneArrayValue) . '&'; - } - unset($params[$key]); - } - } - $paramsContent .= http_build_query($params); - $url .= '?' . $paramsContent; + $url .= '?' . http_build_query($params); } else { $options['body'] = json_encode($params); } @@ -393,8 +382,7 @@ public function requestOAuthAccessToken(string $url, string $clientId, string $c if (count($params) > 0) { if ($method === 'GET') { - $paramsContent = http_build_query($params); - $url .= '?' . $paramsContent; + $url .= '?' . http_build_query($params); } else { $options['body'] = $params; }