Skip to content

YoutubeImport_ImportHelper

Ned Henry edited this page Jun 6, 2014 · 1 revision

YoutubeImport_ImportHelper

The YoutubeImport import helper class.

  • Class name: YoutubeImport_ImportHelper
  • Namespace:

Properties

$youtube_api_key

public string $youtube_api_key = 'AIzaSyDI8ApsA7MBIK4M1Ubs9k4-Rk7_KOeYJ5w'
  • Visibility: public
  • This property is static.

$appName

public string $appName = "OmekaYouTubeImport"
  • Visibility: public
  • This property is static.

Methods

\YoutubeImport_ImportHelper::ParseURL()

\$string YoutubeImport_ImportHelper::\YoutubeImport_ImportHelper::ParseURL()($url)

Parse the Youtube url parameter

  • Visibility: public
  • This method is static.

Arguments

  • $url mixed

\YoutubeImport_ImportHelper::GetVideo()

array YoutubeImport_ImportHelper::\YoutubeImport_ImportHelper::GetVideo()(string $itemID, object $service, int $collection, string $ownerRole, $public)

Fetch metadata from a Youtube video and prepare it

  • Visibility: public
  • This method is static.

Arguments

  • $itemID string - <p>The Youtube video ID from which to extract metadata</p>
  • $service object - <p>The youtube API php interface instance</p>
  • $collection int - <p>The ID of the collection to which to add the new item</p>
  • $ownerRole string - <p>The name of the dublin core field to which to add the Youtube user info</p>
  • $public mixed

Clone this wiki locally