public sealed class YoutubeClient : IDisposable
Public NotInheritable Class YoutubeClient
Implements IDisposable
Dim instance As YoutubeClient
public ref class YoutubeClient sealed : IDisposable
[<SealedAttribute>]
type YoutubeClient =
class
interface IDisposable
end
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Dim client As New YoutubeClient("C:\GoogleSecrets.json", "yourmail@gmail.com", YoutubeScopes.Youtube)
Dim credential As UserCredential = Await client.AuthorizeAsync()
Dim videos As List(Of SearchResult) = Await client.SearchVideos("Rihanna", VideoDefinitionEnum.High, OrderEnum.Relevance)
Dim videoCount As Integer
For Each video As SearchResult In videos
Console.WriteLine(String.Format("Count: {0}; Id: {1}; Title: {2}, Url: {3}",
Interlocked.Increment(videoCount),
video.Id.VideoId, video.Snippet.Title,
String.Format("http://www.youtube.com/watch?v={0}", video.Id.VideoId)))
Next video
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
YoutubeClient(String, MailAddress, YoutubeScopes) | Initializes a new instance of the YoutubeClient class. |
YoutubeClient(String, String, YoutubeScopes) | Initializes a new instance of the YoutubeClient class. |
IsAuthorized | Gets a value that determines whether Youtube API authorization was done. |
MailAddress | Gets the mail address to authorize Youtube service. (e.g: "yourmail@gmail.com") |
Scopes | Gets the current Youtube OAuthv2 scopes. |
Secrets | Gets the client credentials. |
Authorize | Authorizes this instance to use Youtube API services. |
AuthorizeAsync | Authorizes this instance to use Youtube API services. |
Dispose | Releases all the resources used by this instance. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetMySubscriptions | Gets a list containing the subscriptions of the current youtube account. |
GetMyUploads | Gets a list containing the videos uploaded in the current youtube account. |
GetType | Gets the Type of the current instance. (Inherited from Object) |
GetVideos | Gets a list containing the videos uploaded in the specified channel. |
SearchChannels | Searchs channels through Youtube that matches the specified criteria. |
SearchPlaylists | Searchs playlists through Youtube that matches the specified criteria. |
SearchVideos | Searchs videos through Youtube that matches the specified criteria. |
ToString | Returns a string that represents the current object. (Inherited from Object) |
CanConvertTo |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
CanConvertToT |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions) |
IsDisposable |
Determines whether the specified object is a disposable type
(i.e., it implements IDisposable interface).
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
ThrowIfNullTException |
Throws the specified exception if the source object is null.
(Defined by ObjectExtensions) |