Toggle navigation
Toggle navigation
This project
Loading...
Sign in
임승현
/
Multiplex_Ticketing_Platform
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
임승현
2022-06-04 22:46:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0002b394fd63b0a5437a079c2760755f3b249e80
0002b394
1 parent
49b172a8
Edit To Save the Information
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
SearchingTheatersAPI/app.js
SearchingTheatersAPI/app.js
View file @
0002b39
...
...
@@ -13,19 +13,22 @@ let kakaoOptions = {
qs
:
{
'query'
:
'CGV 광명'
,
//'category_group_code' : 'CT1',
'size'
:
5
'size'
:
10
},
encoding
:
'UTF-8'
}
}
;
request
(
kakaoOptions
,
function
(
err
,
res
,
body
)
{
theater_list
=
JSON
.
parse
(
body
).
documents
;
info_list
=
JSON
.
parse
(
body
).
documents
;
let
selectable_theaters
=
[];
if
(
!
err
&&
res
.
statusCode
==
200
){
theater_list
.
forEach
(
info
=>
{
if
(
info
.
category_name
.
endsWith
(
"CJCGV"
))
info_list
.
forEach
(
info
=>
{
if
(
info
.
category_name
.
endsWith
(
"CGV"
)){
selectable_theaters
.
push
(
info
.
place_name
);
console
.
log
(
info
.
place_name
+
" : "
+
info
.
place_url
);
}
});
}
})
})
;
module
.
exports
=
router
;
\ No newline at end of file
...
...
Please
register
or
login
to post a comment