Update coupang.api.php

This commit is contained in:
Namhyeon Go 2021-05-22 05:32:24 +09:00 committed by GitHub
parent a0e3d27388
commit 177ddeef58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,11 +18,11 @@ if(!is_fn("coupang_get_signature")) {
if(!is_fn("coupang_search_items")) {
function coupang_search_items($keyword, $ACCESS_KEY, $SECRET_KEY) {
$URL_PARTS = array("https://api-gateway.coupang.com", "/v2/providers/affiliate_open_api/apis/openapi/v1", "/products/search");
$BASE_URL = $URL_PARTS[0] . '/' . $URL_PARTS[1];
$BASE_URL = $URL_PARTS[0] . $URL_PARTS[1];
$path = $URL_PARTS[1] . '/' . $URL_PARTS[2];
$path = $URL_PARTS[1] . $URL_PARTS[2];
return get_web_json($BASE_URL . "/products/search". "get", array(
return get_web_json($BASE_URL . $URL_PARTS[2]. "get", array(
"headers" => array(
"Authorization" => coupang_get_signature("GET", $path, $ACCESS_KEY, $SECRET_KEY),
"data" => array(