Skip to content

Commit

Permalink
Merge pull request #5 from sullivan28/removendo-query_build
Browse files Browse the repository at this point in the history
Alterando metodos que não existe mais no guzzle.
  • Loading branch information
idealizetecnologia authored Jul 20, 2023
2 parents 6230bf4 + bcffe4c commit 1340ad7
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 30 deletions.
12 changes: 6 additions & 6 deletions lib/Api/CategoriesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ protected function categoriesCategoryIdGetRequest($category_id)

} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand All @@ -379,7 +379,7 @@ protected function categoriesCategoryIdGetRequest($category_id)
$headers
);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'GET',
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
Expand Down Expand Up @@ -636,7 +636,7 @@ protected function sitesSiteIdCategoriesGetRequest($site_id)

} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand All @@ -652,7 +652,7 @@ protected function sitesSiteIdCategoriesGetRequest($site_id)
$headers
);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'GET',
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
Expand Down Expand Up @@ -953,7 +953,7 @@ protected function sitesSiteIdDomainDiscoverySearchGetRequest($site_id, $q, $lim

} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand All @@ -969,7 +969,7 @@ protected function sitesSiteIdDomainDiscoverySearchGetRequest($site_id, $q, $lim
$headers
);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'GET',
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
Expand Down
12 changes: 6 additions & 6 deletions lib/Api/ItemsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ protected function itemsIdGetRequest($id, $access_token)

} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand All @@ -381,7 +381,7 @@ protected function itemsIdGetRequest($id, $access_token)
$headers
);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'GET',
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
Expand Down Expand Up @@ -663,7 +663,7 @@ protected function itemsIdPutRequest($id, $access_token, $item)

} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand All @@ -679,7 +679,7 @@ protected function itemsIdPutRequest($id, $access_token, $item)
$headers
);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'PUT',
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
Expand Down Expand Up @@ -941,7 +941,7 @@ protected function itemsPostRequest($access_token, $item)

} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand All @@ -957,7 +957,7 @@ protected function itemsPostRequest($access_token, $item)
$headers
);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'POST',
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
Expand Down
12 changes: 6 additions & 6 deletions lib/Api/ItemsHealthApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ protected function itemsIdHealthActionsGetRequest($id, $access_token)

} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand All @@ -401,7 +401,7 @@ protected function itemsIdHealthActionsGetRequest($id, $access_token)
$headers
);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'GET',
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
Expand Down Expand Up @@ -680,7 +680,7 @@ protected function itemsIdHealthGetRequest($id, $access_token)

} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand All @@ -696,7 +696,7 @@ protected function itemsIdHealthGetRequest($id, $access_token)
$headers
);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'GET',
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
Expand Down Expand Up @@ -953,7 +953,7 @@ protected function sitesSiteIdHealthLevelsGetRequest($site_id)

} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand All @@ -969,7 +969,7 @@ protected function sitesSiteIdHealthLevelsGetRequest($site_id)
$headers
);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'GET',
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
Expand Down
8 changes: 4 additions & 4 deletions lib/Api/OAuth20Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ protected function authRequest($response_type, $client_id, $redirect_uri)

} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand All @@ -388,7 +388,7 @@ protected function authRequest($response_type, $client_id, $redirect_uri)
$headers
);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'GET',
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
Expand Down Expand Up @@ -682,7 +682,7 @@ protected function getTokenRequest($grant_type = null, $client_id = null, $clien

} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand All @@ -698,7 +698,7 @@ protected function getTokenRequest($grant_type = null, $client_id = null, $clien
$headers
);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'POST',
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
Expand Down
16 changes: 8 additions & 8 deletions lib/Api/RestClientApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ protected function resourceDeleteRequest($resource, $access_token)

} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand All @@ -400,7 +400,7 @@ protected function resourceDeleteRequest($resource, $access_token)
$already_querys = ($encode_url != $resourcePath) ? true : false;
$resourcePath = str_replace('%2F', '/', $resourcePath);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'DELETE',
$this->config->getHost() . $resourcePath . ($already_querys ? "&{$query}" : "?{$query}"),
Expand Down Expand Up @@ -668,7 +668,7 @@ protected function resourceGetRequest($resource, $access_token)

} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand All @@ -694,7 +694,7 @@ protected function resourceGetRequest($resource, $access_token)
$already_querys = ($encode_url != $resourcePath) ? true : false;
$resourcePath = str_replace('%2F', '/', $resourcePath);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'GET',
$this->config->getHost() . $resourcePath . ($already_querys ? "&{$query}" : "?{$query}"),
Expand Down Expand Up @@ -978,7 +978,7 @@ protected function resourcePostRequest($resource, $options, $body)

} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand All @@ -1004,7 +1004,7 @@ protected function resourcePostRequest($resource, $options, $body)
$already_querys = ($encode_url != $resourcePath) ? true : false;
$resourcePath = str_replace('%2F', '/', $resourcePath);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'POST',
$this->config->getHost() . $resourcePath . ($already_querys ? "&{$query}" : "?{$query}"),
Expand Down Expand Up @@ -1286,7 +1286,7 @@ protected function resourcePutRequest($resource, $access_token, $body)

} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand All @@ -1312,7 +1312,7 @@ protected function resourcePutRequest($resource, $access_token, $body)
$already_querys = ($encode_url != $resourcePath) ? true : false;
$resourcePath = str_replace('%2F', '/', $resourcePath);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'PUT',
$this->config->getHost() . $resourcePath . ($already_querys ? "&{$query}" : "?{$query}"),
Expand Down

0 comments on commit 1340ad7

Please sign in to comment.