Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
25
application/libraries/RestCoupangApiServiceClient.php
Normal file
25
application/libraries/RestCoupangApiServiceClient.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use GuzzleHttp\Client;
|
||||
|
||||
require_once __DIR__ . '/RestServiceClient.php';
|
||||
|
||||
class RestCoupangApiServiceClient extends RestServiceClient
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{ }
|
||||
|
||||
|
||||
|
||||
public function getCategory($categoryCode)
|
||||
{
|
||||
$response = $this->request('GET', '/coupang/category?categoryCode='. $categoryCode, []);
|
||||
return $response->data;
|
||||
}
|
||||
|
||||
public function postProduct($params) {
|
||||
$response = $this->request('POST', '/coupang/product', $params);
|
||||
return $response->data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user