Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김건희
/
OSSW_Weather_Briefing
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
Seokjin
2022-06-05 12:30:05 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
347be0432e55c6463031c3da97c409c3579a924b
347be043
1 parent
d890d124
[DELETE]image.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
weather_briefing/server/image.js
weather_briefing/server/image.js
deleted
100644 → 0
View file @
d890d12
var
request
=
require
(
'request'
);
var
url
=
'http://apis.data.go.kr/1360000/VilageFcstInfoService_2.0/getUltraSrtNcst'
;
var
queryParams
=
'?'
+
encodeURIComponent
(
'serviceKey'
)
+
'=3OcUyvx97Vx2YikiZ9IHyRQ6suapku7Xn8VlefQKQWrGIFOGaejhbevwagcubdHfSiQAqJwCV5lyIutw0%2BsppA%3D%3D'
;
/* Service Key*/
queryParams
+=
'&'
+
encodeURIComponent
(
'pageNo'
)
+
'='
+
encodeURIComponent
(
'1'
);
/* */
queryParams
+=
'&'
+
encodeURIComponent
(
'numOfRows'
)
+
'='
+
encodeURIComponent
(
'1000'
);
/* */
queryParams
+=
'&'
+
encodeURIComponent
(
'dataType'
)
+
'='
+
encodeURIComponent
(
'JSON'
);
/* */
queryParams
+=
'&'
+
encodeURIComponent
(
'base_date'
)
+
'='
+
encodeURIComponent
(
'20220605'
);
/* */
queryParams
+=
'&'
+
encodeURIComponent
(
'base_time'
)
+
'='
+
encodeURIComponent
(
'0600'
);
/* */
queryParams
+=
'&'
+
encodeURIComponent
(
'nx'
)
+
'='
+
encodeURIComponent
(
'55'
);
/* */
queryParams
+=
'&'
+
encodeURIComponent
(
'ny'
)
+
'='
+
encodeURIComponent
(
'127'
);
/* */
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
);
});
\ No newline at end of file
Please
register
or
login
to post a comment