Toggle navigation
Toggle navigation
This project
Loading...
Sign in
오지민
/
HomePurchaseAgePrediction
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
오지민
2021-06-04 08:14:01 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
151c1600eaee0a45f5f2f6b1ce20cc86ec289fea
151c1600
1 parent
50bee4be
아파트 거래가 기본 데이터 받아오기
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
API/api.js
API/api.js
0 → 100644
View file @
151c160
var
request
=
require
(
'request'
);
var
url
=
'http://openapi.molit.go.kr/OpenAPI_ToolInstallPackage/service/rest/RTMSOBJSvc/getRTMSDataSvcLandTrade'
;
var
queryParams
=
'?'
+
encodeURIComponent
(
'ServiceKey'
)
+
'=aOirrPIaJrx9RbuDcSM5rE3zzWUmbTaR2nAU4AcdQT2cFkJlG1ZeKa%2FlVF8wHFJthJT6C3jeS5n%2FP%2B3pBggZrw%3D%3D'
;
/* Service Key*/
queryParams
+=
'&'
+
encodeURIComponent
(
'LAWD_CD'
)
+
'='
+
encodeURIComponent
(
'11110'
);
/* */
queryParams
+=
'&'
+
encodeURIComponent
(
'DEAL_YMD'
)
+
'='
+
encodeURIComponent
(
'201512'
);
/* */
request
({
url
:
url
+
queryParams
,
method
:
'GET'
},
function
(
error
,
response
,
body
)
{
console
.
log
(
'Status'
,
response
.
statusCode
);
console
.
log
(
'Headers'
,
JSON
.
stringify
(
response
.
headers
));
console
.
log
(
'Reponse received'
,
body
);
});
Please
register
or
login
to post a comment