워커 수정
This commit is contained in:
@@ -131,7 +131,7 @@ class NaverApiClient
|
||||
$this->charger = $charger;
|
||||
$url = "{$this->baseUrl}/kiso/center/verification-article/price/{$articleNumber}?charger={$this->charger}";
|
||||
|
||||
return $this->request('POST', $url, $priceData);
|
||||
return $this->request('PATCH', $url, $priceData);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -176,21 +176,85 @@ class NaverApiClient
|
||||
|
||||
/**
|
||||
* 특정 단지/평형 시세조회()
|
||||
* @param string hscpNo 단지번호
|
||||
* @param string ptpNo 평형번호
|
||||
* @param Long hscpNo 단지번호
|
||||
* @param int ptpNo 평형번호
|
||||
* API: GET /confirms/hscpMarketPriceInfo.nhn?hscpNo={단지번호}&ptpNo={평형번호}
|
||||
*/
|
||||
public function hscpMarketPriceInfo($hscpNo, $ptpNo){
|
||||
$url = '/confirms/hscpMarketPriceInfo.nhn';
|
||||
$url = $this->commonModel->getCompanyInfo(3);
|
||||
$url = $url['api_server'] . $url;
|
||||
$data = [
|
||||
'hscpNo' => $hscpNo,
|
||||
'ptpNo' => $ptpNo
|
||||
];
|
||||
// public function hscpMarketPriceInfo($hscpNo, $ptpNo){
|
||||
// $url = '/confirms/hscpMarketPriceInfo.nhn';
|
||||
// $url = $this->commonModel->getCompanyInfo(3);
|
||||
// $url = $url['api_server'] . $url;
|
||||
// $data = [
|
||||
// 'hscpNo' => $hscpNo,
|
||||
// 'ptpNo' => $ptpNo
|
||||
// ];
|
||||
|
||||
return $this->request('GET', $url, $data);
|
||||
}
|
||||
// return $this->request('GET', $url, $data);
|
||||
// }
|
||||
public function getComplexPriceByUnitType(int $hscpNo, int $ptpNo): ?array
|
||||
{
|
||||
$url = $this->baseUrl . "/kiso/marketprice/complex/{$hscpNo}/pyeong-type/{$ptpNo}";
|
||||
return $this->request('GET', $url);
|
||||
}
|
||||
|
||||
/**
|
||||
* 법정동 기준 단지 목록 조회
|
||||
* API: GET /kiso/complex/legal-division/{법정동코드}
|
||||
* legalDivisionNumber : 법정동 코드
|
||||
*/
|
||||
public function getComplexList($legalDivisionNumber, $realEstateType = null)
|
||||
{
|
||||
$url = $this->baseUrl . "/kiso/complex/legal-division/{$legalDivisionNumber}";
|
||||
if ($realEstateType !== null) {
|
||||
$url .= "?realEstateType={$realEstateType}";
|
||||
}
|
||||
return $this->request('GET', $url);
|
||||
}
|
||||
|
||||
/**
|
||||
* 단지평형목록 조회(아파트/오피스텔)
|
||||
*/
|
||||
public function getPyeongTypeList($complexNumber){
|
||||
$url = $this->baseUrl . "/kiso/complex/{$complexNumber}/pyeongs";
|
||||
return $this->request('GET', $url);
|
||||
}
|
||||
/**
|
||||
* 빌라 단지 평형 목록 조회
|
||||
*/
|
||||
public function getVillaPyeongTypeList($complexNumber){
|
||||
$url = $this->baseUrl . "/kiso/complex/villa/{$complexNumber}/pyeongs";
|
||||
return $this->request('GET', $url);
|
||||
}
|
||||
|
||||
/**
|
||||
* 단지 상세 조회
|
||||
*/
|
||||
public function getComplexDetail($complexNumber){
|
||||
$url = $this->baseUrl . "/kiso/complex/{$complexNumber}";
|
||||
return $this->request('GET', $url);
|
||||
}
|
||||
|
||||
/**
|
||||
* 빌라 단지 상세 조회
|
||||
*/
|
||||
public function getVillaComplexDetail($complexNumber){
|
||||
$url = $this->baseUrl . "/kiso/complex/villa/{$complexNumber}";
|
||||
return $this->request('GET', $url);
|
||||
}
|
||||
/**
|
||||
* 빌라 단지 동호수 조회
|
||||
*/
|
||||
public function getVillaBuildingList($complexNumber){
|
||||
$url = $this->baseUrl . "/kiso/complex/villa/{$complexNumber}/buildings";
|
||||
return $this->request('GET', $url);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 현장확인 동기화 결과 전송
|
||||
* API: GET /site/submitSyncResult.nhn?reserveNoList={예약번호리스트}
|
||||
* @param string reserveNoList 예약번호 리스트 (쉼표로 구분된 문자열, 예: "12345,67890,54321")
|
||||
*/
|
||||
|
||||
|
||||
public function submitSyncResult(string $reserveNoList): ?array
|
||||
|
||||
Reference in New Issue
Block a user