Toggle navigation
Toggle navigation
This project
Loading...
Sign in
은승우
/
LINEBOT
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
나혜원
2019-12-04 20:16:07 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
344b5b7f2594c88e0e1b5ce99224dc0525da1e02
344b5b7f
1 parent
8ab71967
youtube video
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
youtube.js
youtube.js
0 → 100644
View file @
344b5b7
var
response
=
'IU'
;
var
request
=
require
(
"request"
);
var
options
=
{
method
:
'GET'
,
url
:
'https://www.googleapis.com/youtube/v3/search'
,
qs
:
{
key
:
'AIzaSyA8-HR7V5cGIwWiBUWzKZsm5yzwrYc-4ys'
,
part
:
'snippet'
,
maxResults
:
'1'
,
order
:
'viewCount'
,
q
:
response
,
type
:
'video'
},
};
request
(
options
,
function
(
error
,
response
,
body
)
{
if
(
error
)
throw
new
Error
(
error
);
console
.
log
(
body
);
});
\ No newline at end of file
Please
register
or
login
to post a comment