Show / Hide Table of Contents

Class YouTubeService

Inheritance
System.Object
YouTubeService
Namespace: CommonBotLibrary.Services
Assembly: cs.temp.dll.dll
Syntax
public class YouTubeService : IWebpageService, ISearchable<IWebpage>

Constructors

YouTubeService(String)

Constructs an implementation that searches Youtube.

Declaration
public YouTubeService(string platformKey = null)
Parameters
Type Name Description
System.String platformKey

Defaults to platform key in Tokens if null.

Methods

SearchAsync(String, SafeSearchEnum)

Searches youtube.com for videos relevant to the given search term(s).

Declaration
public Task<IEnumerable<SearchResult>> SearchAsync(string query, SafeSearchEnum safeSearch = null)
Parameters
Type Name Description
System.String query

The query to search for.

SafeSearchEnum safeSearch

Safe search configuration.

Returns
Type Description
Task<IEnumerable<SearchResult>>

A collection of relevant videos indexed on Youtube.

See Also
API TOS
Back to top © 2017 - Borja Canseco