Socket
Socket
Sign inDemoInstall

angular-dailymotion-api-factory

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular-dailymotion-api-factory

angularjs factory for dailymotion json rest api requests


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
2.02 MB
Created
Weekly downloads
 

Readme

Source

angular-dailymotion-api-factory is an angularjs module with a dailymotion api factory.

Author: Jonathan Hornung (JohnnyTheTank)

Usage

  1. Install via either bower, npm or downloaded files:
    1. bower install --save angular-dailymotion-api-factory
    2. npm install --save angular-dailymotion-api-factory
    3. download angular-dailymotion-api-factory.zip
  2. Add jtt_dailymotion to your application's module dependencies.
  3. Include dependencies in your HTML.
    1. When using bower:
    <script src="bower_components/angular-dailymotion-api-factory/src/angular-dailymotion-api-factory.min.js"></script>
    
    1. When using npm:
    <script src="node_modules/angular-dailymotion-api-factory/src/angular-dailymotion-api-factory.min.js"></script>
    
    1. when using downloaded files
    <script src="angular-dailymotion-api-factory.min.js"></script>
    
  4. Use the factory dailymotionFactory

factory methods

getVideos
getVideosFromUserById

Get all parameters here

// all parameters: https://developer.dailymotion.com/tools/apiexplorer#/user/videos/list
dailymotionFactory.getVideosFromUserById({
    id:"<USER_ID>",
    search:"<SEARCH_TERM>", // (optional)
    limit:"<LIMIT>", // (optional) valid values: 1-100 | default: 10
}).then(function(_data){
    //on success
}).catch(function (_data) {
    //on error
});
getVideosFromChannelById

Get all parameters here

// all parameters: https://developer.dailymotion.com/tools/apiexplorer#/channel/videos/list
dailymotionFactory.getVideosFromChannelById({
    id:"<CHANNEL_ID>",
    search:"<SEARCH_TERM>", // (optional)
    limit:"<LIMIT>", // (optional) valid values: 1-100 | default: 10
}).then(function(_data){
    //on success
}).catch(function (_data) {
    //on error
});
getVideosFromPlaylistById

Get all parameters here

// all parameters: https://developer.dailymotion.com/tools/apiexplorer#/playlist/videos/list
dailymotionFactory.getVideosFromPlaylistById({
    id:"<PLAYLIST_ID>",
    limit:"<LIMIT>", // (optional) valid values: 1-100 | default: 10
}).then(function(_data){
    //on success
}).catch(function (_data) {
    //on error
});
getVideosByParams

Get all parameters here

// all parameters: https://developer.dailymotion.com/tools/apiexplorer#/video/list
dailymotionFactory.getVideosByParams({
    search:"<SEARCH_TERM>", // (optional)
    tags:"<TAGS>", // (optinal)
    limit:"<LIMIT>", // (optional) valid values: 1-100 | default: 10
}).then(function(_data){
    //on success
}).catch(function (_data) {
    //on error
});

Dailymotion JSON API

License

MIT

Keywords

FAQs

Last updated on 26 Jan 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc