YoutubeClientGetMySubscriptions Method
Gets a list containing the subscriptions of the current youtube account.
Namespace: DevCase.ThirdParty.Google.YoutubeAssembly: DevCase.net48.ThirdParty.GoogleServices (in DevCase.net48.ThirdParty.GoogleServices.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public Task<List<Subscription>> GetMySubscriptions(
OrderEnum resultSorting
)
Public Function GetMySubscriptions (
resultSorting As OrderEnum
) As Task(Of List(Of Subscription))
Dim instance As YoutubeClient
Dim resultSorting As OrderEnum
Dim returnValue As Task(Of List(Of Subscription))
returnValue = instance.GetMySubscriptions(resultSorting)
public:
Task<List<Subscription^>^>^ GetMySubscriptions(
OrderEnum resultSorting
)
member GetMySubscriptions :
resultSorting : OrderEnum -> Task<List<Subscription>>
No code example is currently available or this language may not be supported.
- resultSorting OrderEnum
-
A value that determines the sorting method of the resulting playlists (Sort by date, sort by relevance, etc...)
TaskListSubscription
The resulting
TaskTResult.
This is a code example.
No code example is currently available or this language may not be supported.
Dim client As New YoutubeClient("C:\GoogleSecrets.json", "yourmail@gmail.com")
Dim credential As UserCredential = Await client.AuthorizeAsync()
Dim subscriptions As List(Of Subscription) = Await client.GetMySubscriptions(SubscriptionsResource.ListRequest.OrderEnum.Relevance)
Dim subscriptionCount As Integer
For Each subscription As Subscription In subscriptions
Console.WriteLine(String.Format("Count: {0}; Id: {1}; Title: {2}, Url: {3}",
Interlocked.Increment(subscriptionCount),
subscription.Id, subscription.Snippet.Title,
String.Format("http://www.youtube.com/channel/{0}", subscription.Snippet.ResourceId.ChannelId)))
Next subscription
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.