kafe.ext.youtube

Class

Version 1.1.0

Extra methods for Youtube.

Source: dist/ext/youtube.js

Methods

getParams

Get the default params with optional extra params.

getParams
  • options
Object

Parameters:

  • [options] Object Optional

    Options

Returns:

Object

The default Youtube params.

getPlaylistVideos

Builds a youtube search url then returns the results as the first argument of the specified callback.

getPlaylistVideos
  • playlistId
  • callback

Parameters:

  • playlistId String

    Playlist id

  • callback Function

    Callback

search

Builds a youtube search url then returns the results as the first argument of the specified callback.

search
  • options
  • callback

Parameters:

  • [options] Object Optional

    Options

  • callback Function

    Callback

setParams

Set default Youtube params.

setParams
  • options

Parameters:

  • options Object

    Options

    • [maxResults = 10] Number Optional

      Number of results

    • [startIndex = 1] Number Optional

      Start index (page)

    • [orderBy = 'relevance'] String Optional

      Order by choice

    • [q] String Optional

      Query string of search

    • [author] String Optional

      Author of videos

    • [category] Array(String) Optional

      Categories