0.7.10 • Published 8 years ago

aping-plugin-dailymotion v0.7.10

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

apiNG

Join the chat at https://gitter.im/JohnnyTheTank/apiNG npm version Bower version

apiNG-plugin-dailymotion is a Dailymotion Data API plugin for apiNG.

Information

Documentation

  1. INSTALLATION
    1. Get file
    2. Include file
    3. Add dependency
    4. Add plugin
  2. USAGE
    1. Models
    2. Requests

1. INSTALLATION

I. Get file

Install via either bower, npm, CDN (jsDelivr) or downloaded files:

II. Include file

Include aping-plugin-dailymotion.min.js in your apiNG application

<!-- when using bower -->
<script src="bower_components/apiNG-plugin-dailymotion/dist/aping-plugin-dailymotion.min.js"></script>

<!-- when using npm -->
<script src="node_modules/aping-plugin-dailymotion/dist/aping-plugin-dailymotion.min.js"></script>

<!-- when using cdn file -->
<script src="//cdn.jsdelivr.net/aping.plugin-dailymotion/latest/aping-plugin-dailymotion.min.js"></script>

<!-- when using downloaded files -->
<script src="aping-plugin-dailymotion.min.js"></script>

III. Add dependency

Add the module jtt_aping_dailymotion as a dependency to your app module:

angular.module('app', ['jtt_aping', 'jtt_aping_dailymotion']);

IV. Add the plugin

Add the plugin's directive aping-dailymotion="[]" to your apiNG directive and configure your requests

<aping
    template-url="templates/social.html"
    model="social"
    items="20"
    aping-dailymotion="[{'search':'eminem'}]">
</aping>

2. USAGE

I. Models

Supported apiNG models

modelcontentsupportmax itemsper request(native) default itemsper request
socialvideosfull10010
videovideosfull10010

support:

  • full: the source platform provides a full list with usable results
  • partly: the source platfrom provides just partly usable results

II. Requests

Every apiNG plugin expects an array of requests as html attribute.

Requests by User

parametersampledefaultdescriptionoptional
userIdbrtvofficialUser IDno
searcheminemLimit the result set to this full text searchyes
tagshiphop,rapLimit the result set to this full text search of video tagsyes
channelIdmusicLimit the result set to this channel (Browse channels)yes
items2510Items per request (0-100)yes
protocolhttpsUse https or http to force the protocol. Leave it blank to for dynamic choice. Works only for model videoyes

Sample requests:

  • [{'userId':'lolaflips'}, {'userId':'thepetcollective'}]
  • [{'userId':'FailArmy', 'items':30, 'search':'2015'}]

Requests by Channel

parametersampledefaultdescriptionoptional
channelIdmusicLimit the result set to this channel (Browse channels)no
searcheminemLimit the result set to this full text searchyes
tagshiphop,rapLimit the result set to this full text search of video tagsyes
items2510Items per request (0-100)yes
protocolhttpsUse https or http to force the protocol. Leave it blank to for dynamic choice. Works only for model videoyes

Sample requests:

  • [{'channelId':'music'}]

Requests by Playlist

parametersampledefaultdescriptionoptional
playlistIdx439f7_brtvofficial_br-highlights-septemberLimit the result set to this playlistno
searcheminemLimit the result set to this full text searchyes
tagshiphop,rapLimit the result set to this full text search of video tagsyes
items2510Items per request (0-100)yes
protocolhttpsUse https or http to force the protocol. Leave it blank to for dynamic choice. Works only for model videoyes

Sample requests:

  • [{'playlistId':'x439f7_brtvofficial_br-highlights-september'}]

Requests by Search

parametersampledefaultdescriptionoptional
searcheminemLimit the result set to this full text searchno
tagshiphop,rapLimit the result set to this full text search of video tagsyes
genrecomedyLimit the result set to this genre of videosyes
countryusLimit the result set to this country (declarative)yes
languageenLimit the result set to this languageyes
items2510Items per request (0-100)yes
protocolhttpsUse https or http to force the protocol. Leave it blank to for dynamic choice. Works only for model videoyes

Sample requests:

  • [{'search':'adele'}]
  • [{'search':'Louis C K', 'language':'en', 'items':5}]

Requests by Tags

parametersampledefaultdescriptionoptional
tagshiphop,rapLimit the result set to this full text search of video tagsno
searcheminemLimit the result set to this full text searchyes
genrecomedyLimit the result set to this genre of videosyes
countryusLimit the result set to this country (declarative)yes
languageenLimit the result set to this languageyes
items2510Items per request (0-100)yes
protocolhttpsUse https or http to force the protocol. Leave it blank to for dynamic choice. Works only for model videoyes

Sample requests:

  • [{'tags':'soccer'}]
  • [{'tags':'fcbayern,müller', 'language':'de', 'items':5}]

Licence

MIT

0.7.10

8 years ago

0.7.9

8 years ago

0.7.8

8 years ago

0.7.7

8 years ago

0.7.6

8 years ago

0.7.5

8 years ago

0.7.1

8 years ago

0.7.0

8 years ago