Свойство | Type | Description | |
---|---|---|---|
GalleryEndpoint | System |
Méthode | Description | |
---|---|---|
CreateGalleryItemCommentAsync ( string comment, string galleryItemId ) : Task |
Create a comment for an item. OAuth authentication required.
|
|
CreateGalleryItemCommentReplyAsync ( string comment, string galleryItemId, string parentId ) : Task |
Reply to a comment that has been created for an item. OAuth authentication required.
|
|
GalleryEndpoint ( IApiClient apiClient ) : System |
Initializes a new instance of the GalleryEndpoint class.
|
|
GetGalleryAlbumAsync ( string albumId ) : Task |
Get additional information about an album in the gallery.
|
|
GetGalleryAsync ( GallerySection section = GallerySection.Hot, GallerySortOrder sort = GallerySortOrder.Viral, TimeWindow window = TimeWindow.Day, int page = null, bool showViral = true ) : Task |
Returns the images in the gallery.
|
|
GetGalleryImageAsync ( string imageId ) : Task |
Get additional information about an image in the gallery.
|
|
GetGalleryItemCommentAsync ( int commentId, string galleryItemId ) : Task |
Get information about a specific comment.
|
|
GetGalleryItemCommentCountAsync ( string galleryItemId ) : Task |
The number of comments on an item.
|
|
GetGalleryItemCommentIdsAsync ( string galleryItemId ) : Task |
List all of the IDs for the comments on an item.
|
|
GetGalleryItemCommentsAsync ( string galleryItemId, CommentSortOrder sort = CommentSortOrder.Best ) : Task |
Get all comments for a gallery item.
|
|
GetGalleryItemTagsAsync ( string galleryItemId ) : Task |
View tags for a gallery item.
|
|
GetGalleryItemVotesAsync ( string galleryItemId ) : Task |
Get the vote information about an image.
|
|
GetGalleryTagAsync ( string tag, GalleryTagSortOrder sort = GalleryTagSortOrder.Viral, TimeWindow window = TimeWindow.Week, int page = null ) : Task |
View images for a gallery tag.
|
|
GetGalleryTagImageAsync ( string galleryItemId, string tag ) : Task |
View a single item in a gallery tag.
|
|
GetMemesSubGalleryAsync ( MemesGallerySortOrder sort = MemesGallerySortOrder.Viral, TimeWindow window = TimeWindow.Week, int page = null ) : Task |
View images for memes subgallery.
|
|
GetMemesSubGalleryImageAsync ( string imageId ) : Task |
View a single image in the memes gallery.
|
|
GetRandomGalleryAsync ( int page = null ) : Task |
Returns a random set of gallery images.
|
|
GetSubredditGalleryAsync ( string subreddit, SubredditGallerySortOrder sort = SubredditGallerySortOrder.Time, TimeWindow window = TimeWindow.Week, int page = null ) : Task |
View gallery images for a subreddit.
|
|
GetSubredditImageAsync ( string imageId, string subreddit ) : Task |
View a single image in the subreddit.
|
|
PublishToGalleryAsync ( string galleryItemId, string title, string topicId = null, bool bypassTerms = null, bool mature = null ) : Task |
Share an Album or Image to the Gallery. OAuth authentication required.
|
|
RemoveFromGalleryAsync ( string galleryItemId ) : Task |
Remove an item from the gallery. OAuth authentication required.
|
|
ReportGalleryItemAsync ( string galleryItemId, ReportReason reason ) : Task |
Report an item in the gallery. OAuth authentication required.
|
|
SearchGalleryAdvancedAsync ( string qAll = null, string qAny = null, string qExactly = null, string qNot = null, ImageFileType fileType = null, ImageSize imageSize = null, GallerySortOrder sort = GallerySortOrder.Time, TimeWindow window = TimeWindow.All, int page = null ) : Task |
Search the gallery with a given query string.
|
|
SearchGalleryAsync ( string query, GallerySortOrder sort = GallerySortOrder.Time, TimeWindow window = TimeWindow.All, int page = null ) : Task |
Search the gallery with a given query string.
|
|
VoteGalleryItemAsync ( string galleryItemId, VoteOption vote ) : Task |
Vote for an item. Send the same value again to undo a vote. OAuth authentication required.
|
|
VoteGalleryTagAsync ( string galleryItemId, string tag, VoteOption vote ) : Task |
Vote for a tag. Send the same value again to undo a vote. OAuth authentication required.
|
Méthode | Description | |
---|---|---|
GalleryEndpoint ( IApiClient apiClient, |
Initializes a new instance of the GalleryEndpoint class.
|
public CreateGalleryItemCommentAsync ( string comment, string galleryItemId ) : Task |
||
comment | string | The text of the comment. |
galleryItemId | string | The gallery item id. |
Résultat | Task |
public CreateGalleryItemCommentReplyAsync ( string comment, string galleryItemId, string parentId ) : Task |
||
comment | string | The text of the comment. |
galleryItemId | string | The gallery item id. |
parentId | string | The comment id that you are replying to. |
Résultat | Task |
public GalleryEndpoint ( IApiClient apiClient ) : System | ||
apiClient | IApiClient | The type of client that will be used for authentication. |
Résultat | System |
public GetGalleryAlbumAsync ( string albumId ) : Task |
||
albumId | string | The album id. |
Résultat | Task |
public GetGalleryAsync ( GallerySection section = GallerySection.Hot, GallerySortOrder sort = GallerySortOrder.Viral, TimeWindow window = TimeWindow.Day, int page = null, bool showViral = true ) : Task |
||
section | GallerySection | The gallery section. Default: Hot |
sort | GallerySortOrder | The order that the gallery should be sorted by. Default: Viral |
window | TimeWindow | The time period that should be used in filtering requests. Default: Day |
page | int | The data paging number. Default: null |
showViral | bool | Show or hide viral images from the 'user' section. Default: true |
Résultat | Task |
public GetGalleryImageAsync ( string imageId ) : Task |
||
imageId | string | The image id. |
Résultat | Task |
public GetGalleryItemCommentAsync ( int commentId, string galleryItemId ) : Task |
||
commentId | int | The comment id. |
galleryItemId | string | The gallery item id. |
Résultat | Task |
public GetGalleryItemCommentCountAsync ( string galleryItemId ) : Task |
||
galleryItemId | string | The gallery item id. |
Résultat | Task |
public GetGalleryItemCommentIdsAsync ( string galleryItemId ) : Task |
||
galleryItemId | string | The gallery item id. |
Résultat | Task |
public GetGalleryItemCommentsAsync ( string galleryItemId, CommentSortOrder sort = CommentSortOrder.Best ) : Task |
||
galleryItemId | string | The gallery item id. |
sort | CommentSortOrder | The order that comments should be sorted by. |
Résultat | Task |
public GetGalleryItemTagsAsync ( string galleryItemId ) : Task |
||
galleryItemId | string | The gallery item id. |
Résultat | Task |
public GetGalleryItemVotesAsync ( string galleryItemId ) : Task |
||
galleryItemId | string | The gallery item id. |
Résultat | Task |
public GetGalleryTagAsync ( string tag, GalleryTagSortOrder sort = GalleryTagSortOrder.Viral, TimeWindow window = TimeWindow.Week, int page = null ) : Task |
||
tag | string | The name of the tag. |
sort | GalleryTagSortOrder | The order that the images in the gallery tag should be sorted by. Default: Viral |
window | TimeWindow | The time period that should be used in filtering requests. Default: Week |
page | int | The data paging number. Default: null |
Résultat | Task |
public GetGalleryTagImageAsync ( string galleryItemId, string tag ) : Task |
||
galleryItemId | string | The gallery item id. |
tag | string | The name of the tag. |
Résultat | Task |
public GetMemesSubGalleryAsync ( MemesGallerySortOrder sort = MemesGallerySortOrder.Viral, TimeWindow window = TimeWindow.Week, int page = null ) : Task |
||
sort | MemesGallerySortOrder | The order that the gallery should be sorted by. Default: Viral |
window | TimeWindow | The time period that should be used in filtering requests. Default: Week |
page | int | The data paging number. Default: null |
Résultat | Task |
public GetMemesSubGalleryImageAsync ( string imageId ) : Task |
||
imageId | string | The image id. |
Résultat | Task |
public GetRandomGalleryAsync ( int page = null ) : Task |
||
page | int | A page of random gallery images, from 0-50. Pages are regenerated every hour. |
Résultat | Task |
public GetSubredditGalleryAsync ( string subreddit, SubredditGallerySortOrder sort = SubredditGallerySortOrder.Time, TimeWindow window = TimeWindow.Week, int page = null ) : Task |
||
subreddit | string | A valid subreddit name. Example: pics, gaming |
sort | SubredditGallerySortOrder | The order that the gallery should be sorted by. Default: Time |
window | TimeWindow | The time period that should be used in filtering requests. Default: Week |
page | int | The data paging number. Default: null |
Résultat | Task |
public GetSubredditImageAsync ( string imageId, string subreddit ) : Task |
||
imageId | string | The image id. |
subreddit | string | A valid subreddit name. Example: pics, gaming |
Résultat | Task |
public PublishToGalleryAsync ( string galleryItemId, string title, string topicId = null, bool bypassTerms = null, bool mature = null ) : Task |
||
galleryItemId | string | The gallery item id. |
title | string | The title of the image. This is required. |
topicId | string | The topic id - not the topic name. |
bypassTerms | bool | /// If the user has not accepted the terms yet, this endpoint will return an error. To by-pass /// the terms in general simply set this value to true. /// |
mature | bool | If the post is mature, set this value to true. |
Résultat | Task |
public RemoveFromGalleryAsync ( string galleryItemId ) : Task |
||
galleryItemId | string | The gallery item id. |
Résultat | Task |
public ReportGalleryItemAsync ( string galleryItemId, ReportReason reason ) : Task |
||
galleryItemId | string | The gallery item id. |
reason | ReportReason | A reason why content is inappropriate. |
Résultat | Task |
public SearchGalleryAdvancedAsync ( string qAll = null, string qAny = null, string qExactly = null, string qNot = null, ImageFileType fileType = null, ImageSize imageSize = null, GallerySortOrder sort = GallerySortOrder.Time, TimeWindow window = TimeWindow.All, int page = null ) : Task |
||
qAll | string | Search for all of these words (and). |
qAny | string | Search for any of these words (or). |
qExactly | string | Search for exactly this word or phrase. |
qNot | string | Exclude results matching this word or phrase. |
fileType | ImageFileType | Show results for a specific file type. |
imageSize | ImageSize | Show results for a specific image size. |
sort | GallerySortOrder | The order that the gallery should be sorted by. Default: Time |
window | TimeWindow | The time period that should be used in filtering requests. Default: Day |
page | int | The data paging number. Default: null |
Résultat | Task |
public SearchGalleryAsync ( string query, GallerySortOrder sort = GallerySortOrder.Time, TimeWindow window = TimeWindow.All, int page = null ) : Task |
||
query | string | /// Query string to search by. This parameter also supports boolean operators (AND, OR, NOT) and /// indices (tag: user: title: ext: subreddit: album: meme:). An example compound query would be 'title: cats AND dogs /// ext: gif' /// |
sort | GallerySortOrder | The order that the gallery should be sorted by. Default: Time |
window | TimeWindow | The time period that should be used in filtering requests. Default: Day |
page | int | The data paging number. Default: null |
Résultat | Task |
public VoteGalleryItemAsync ( string galleryItemId, VoteOption vote ) : Task |
||
galleryItemId | string | The gallery item id. |
vote | VoteOption | The vote. |
Résultat | Task |
public VoteGalleryTagAsync ( string galleryItemId, string tag, VoteOption vote ) : Task |
||
galleryItemId | string | The gallery item id. |
tag | string | Name of the tag (implicitly created, if doesn't exist). |
vote | VoteOption | The vote. |
Résultat | Task |