YoutubeClientSearchChannels Method
Searchs channels through Youtube that matches the specified criteria.
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<SearchResult>> SearchChannels(
string searchPattern,
OrderEnum resultSorting
)
Public Function SearchChannels (
searchPattern As String,
resultSorting As OrderEnum
) As Task(Of List(Of SearchResult))
Dim instance As YoutubeClient
Dim searchPattern As String
Dim resultSorting As OrderEnum
Dim returnValue As Task(Of List(Of SearchResult))
returnValue = instance.SearchChannels(searchPattern,
resultSorting)
public:
Task<List<SearchResult^>^>^ SearchChannels(
String^ searchPattern,
OrderEnum resultSorting
)
member SearchChannels :
searchPattern : string *
resultSorting : OrderEnum -> Task<List<SearchResult>>
No code example is currently available or this language may not be supported.
- searchPattern String
-
The search pattern.
Only channels matching the specified title pattern will be listed.
- resultSorting OrderEnum
-
A value that determines the sorting method of the resulting channels (Sort by date, sort by relevance, etc...)
TaskListSearchResult
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 channels As List(Of SearchResult) = Await client.SearchChannels("Rihanna", OrderEnum.Relevance)
Dim channelCount As Integer
For Each channel As SearchResult In channels
Console.WriteLine(String.Format("Count: {0}; Id: {1}; Title: {2}, Url: {3}",
Interlocked.Increment(channelCount),
channel.Id.ChannelId, channel.Snippet.Title,
String.Format("http://www.youtube.com/channel/{0}", channel.Id.ChannelId)))
Next channel
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.