angular-youtube-api-factory is an angularjs module with a youtube api factory.
Author: Jonathan Hornung (JohnnyTheTank)
Usage
- Install via either bower, npm or downloaded files:
bower install --save angular-youtube-api-factory
npm install --save angular-youtube-api-factory
- download angular-youtube-api-factory.zip
- Add
jtt_youtube
to your application's module dependencies. - Include dependencies in your HTML.
- When using bower:
- When using npm:
- when using downloaded files
- Use
youtubeFactory
via dependency injection
factory methods
getVideo
//docs: https://developers.google.com/youtube/v3/docs/videos/listyoutubeFactory;
getVideos
//docs: https://developers.google.com/youtube/v3/docs/channels/listyoutubeFactory;
//docs: https://developers.google.com/youtube/v3/docs/search/listyoutubeFactory;
//docs: https://developers.google.com/youtube/v3/docs/playlists/listyoutubeFactory;
getChannel
// docs: https://developers.google.com/youtube/v3/docs/search/listyoutubeFactory;
Youtube Data JSON API
- Docs: https://developers.google.com/youtube/v3/docs/
- API Explorer: https://developers.google.com/apis-explorer/#p/youtube/v3/
- Youtube Username to Channel ID Converter: http://johnnythetank.github.io/youtube-channel-name-converter/
More angular-api-factories
bandsintown - dailymotion - facebook - flickr - footballdata - github - openweathermap - tumblr - vimeo - wikipedia - youtube
License
MIT