Show / Hide Table of Contents

Class ImgurService

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

Constructors

ImgurService(String)

Constructs an implementation that searches Imgur.

Declaration
public ImgurService(string imgur = null)
Parameters
Type Name Description
System.String imgur

Defaults to Imgur client ID in Tokens if null.

Methods

SearchAsync(String)

Searches imgur.com for images relevant to the given search term(s).

Declaration
public Task<IEnumerable<ImgurResult>> SearchAsync(string query)
Parameters
Type Name Description
System.String query

The query to search for.

Returns
Type Description
Task<IEnumerable<ImgurResult>>

A collection of relevant images indexed on Imgur.

See Also
TOS
Back to top © 2017 - Borja Canseco