Skip to content

A simple script for parsing youtube playlist using Youtube API v3 in GAPI

Notifications You must be signed in to change notification settings

santosh898/youtube-playlist-gapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

youtube-playlist-gapi

A simple script for parsing youtube playlist using GAPI with Javascript

Note:- Get API-KEY from your google Project. If you don't have one, follow instructions from here.

import { loadClient, getPlaylist } from './PlaylistHandler';
const API_KEY = 'Your API key here'

loadClient(clientLoaded, API_KEY); //Waits until client is loaded and callback will be fired

const clientLoaded = () => {
    const url='Playlist Url here';
    getPlaylist(url,handleResponse); // handleResponse will be called with response data
}
const handleResponse = res => console.log(res);

About

A simple script for parsing youtube playlist using Youtube API v3 in GAPI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published