YouTube Wyam.YouTube

Outputs metadata for information from YouTube.
This modules uses the Google.Apis.YouTube.v3 library and associated types to submit requests to GitHub. Because of the large number of different kinds of requests, this module does not attempt to provide a fully abstract wrapper around the Google.Apis.YouTube.v3 library. Instead, it simplifies the housekeeping involved in setting up an Google.Apis.YouTube.v3 client and requires you to provide functions that fetch whatever data you need. Each request will be sent for each input document.

Package

This module exists in the Wyam.YouTube package which is not part of the core distribution. Add the following preprocessor directive to your configuration file to use it:
#n Wyam.YouTube
Alternatively, you can add all modules at once with the following preprocessor directive:
#n Wyam.All

Usage

  • YouTube(string apiKey)

    Creates a connection to the YouTube API with authenticated access.

    • apiKey

      The apikey to use.

Fluent Methods

Chain these methods together after the constructor to modify behavior.

  • WithRequest(string key, Func<IDocument, IExecutionContext, YouTubeService, object> request)

    Submits a request to the YouTube client. This allows you to incorporate data from the execution context and current document in your request.

    • key

      The metadata key in which to store the return value of the request function.

    • request

      A function with the request to make.

  • WithRequest(string key, Func<IExecutionContext, YouTubeService, object> request)

    Submits a request to the YouTube client. This allows you to incorporate data from the execution context in your request.

    • key

      The metadata key in which to store the return value of the request function.

    • request

      A function with the request to make.

GitHub