Toggle navigation
Toggle navigation
This project
Loading...
Sign in
term-project
/
project
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
박주영
2020-11-28 00:27:26 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
33ac0792464d0c116b617cd296e94f8579948a40
33ac0792
1 parent
a2e8a7e6
api url 넣기
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
express/app2.js
express/app2.js
0 → 100644
View file @
33ac079
var
express
=
require
(
'express'
);
const
request
=
require
(
'request'
);
const
api_url
=
'http://apis.data.go.kr/1471000/FoodAdtvInfoService'
;
//발급받은 키
const
key
=
'PFs%2BxbmfLdZwXaK7l5l9w4xEcdaDcYByiEj9PoHq2KCPAtx%2FE1N7OPUaCPr6bam18nVQgKOnuxMlaRsJhG6gyQ%3D%3D'
const
a_url
=
api_url
+
'/getFoodAdtvInfoList?ServiceKey='
+
key
+
'&numOfRows=3&pageNo=1'
;
console
.
log
(
a_url
);
request
.
post
({
url
:
a_url
,
form
:{
key
:
'value'
,
}
},(
error
,
respopnse
,
body
)
=>
{
console
.
log
(
body
)
});
\ No newline at end of file
Please
register
or
login
to post a comment