YouTube Class

Summary

Outputs metadata for information from YouTube.
Assembly
Wyam.YouTube.dll
Namespace
Wyam.YouTube
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IModule"] click Interface0 "/api/Wyam.Common.Modules/IModule" Type-.->Interface1["IAsNewDocuments"] click Interface1 "/api/Wyam.Common.Modules/IAsNewDocuments" Type-.->Interface2["IDisposable"] Type["YouTube"] class Type type-node

Syntax

public class YouTube : IModule, IAsNewDocuments, IDisposable

Remarks

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.

Constructors

Name Summary
YouTube(string) Creates a connection to the YouTube API with authenticated access.

Methods

Name Value Summary
Dispose() void
Execute(IReadOnlyList<IDocument>, IExecutionContext) IEnumerable<IDocument>
This should not be called directly, instead call IExecutionContext.Execute() if you need to execute a module from within another module.
WithRequest(string, Func<IDocument, IExecutionContext, YouTubeService, Object>) YouTube
Submits a request to the YouTube client. This allows you to incorporate data from the execution context and current document in your request.
WithRequest(string, Func<IExecutionContext, YouTubeService, Object>) YouTube
Submits a request to the YouTube client. This allows you to incorporate data from the execution context in your request.
GitHub