C# 클래스 ImgurNet.ApiEndpoints.AlbumEndpoint

상속: BaseEndpoint
파일 보기 프로젝트 열기: 0xdeafcafe/ImgurNet 1 사용 예제들

공개 메소드들

메소드 설명
AddImageToAlbumAsync ( string albumId, string imageId ) : Task>

Adds an image to an album. Must be authenticated using OAuth2Authentication to call this Endpoint

AddImagesToAlbumAsync ( string albumId, string imageIds ) : Task>

Adds images to an album. Must be authenticated using OAuth2Authentication to call this Endpoint

AlbumEndpoint ( Imgur imgur ) : System

CreateAlbumAsync ( Image images = null, Image coverImage = null, string title = null, string description = null, Privacy privacy = Privacy.Public, AlbumLayout layout = AlbumLayout.Blog ) : Task>

Creates an album on imgur, if authorized with OAuth2Authentication then it will be added to the authorised.

CreateAlbumFromIdsAsync ( string imageIds = null, string coverImageId = null, string title = null, string description = null, Privacy privacy = Privacy.Public, AlbumLayout layout = AlbumLayout.Blog ) : Task>

Creates an album on imgur, if authorized with OAuth2Authentication then it will be added to the authorised.

DeleteAlbumAsync ( string albumDeletionHash ) : Task>

Delete an album with a deletion hash

FavouriteAlbumAsync ( string albumId ) : Task>

Adds/Removes an album from the authenticated user's favourites. Must be authenticated using OAuth2Authentication to call this Endpoint.

GetAlbumDetailsAsync ( string albumId ) : Task>

Get information about a specific album.

GetAllImagesFromAlbumAsync ( string albumId ) : Task>

Get a list of images in a specific album.

RemoveImageFromAlbumAsync ( string albumId, string imageId ) : Task>

Removes an image from an album. Must be authenticated using OAuth2Authentication to call this Endpoint

RemoveImagesFromAlbumAsync ( string albumId, string imageIds ) : Task>

Removes images from an album. Must be authenticated using OAuth2Authentication to call this Endpoint

메소드 상세

AddImageToAlbumAsync() 공개 메소드

Adds an image to an album. Must be authenticated using OAuth2Authentication to call this Endpoint
public AddImageToAlbumAsync ( string albumId, string imageId ) : Task>
albumId string The AlbumId of the album you want to add an image to
imageId string An image id to add to the album
리턴 Task>

AddImagesToAlbumAsync() 공개 메소드

Adds images to an album. Must be authenticated using OAuth2Authentication to call this Endpoint
public AddImagesToAlbumAsync ( string albumId, string imageIds ) : Task>
albumId string The AlbumId of the album you want to add images to
imageIds string A collection of image ids to add to the album
리턴 Task>

AlbumEndpoint() 공개 메소드

public AlbumEndpoint ( Imgur imgur ) : System
imgur Imgur
리턴 System

CreateAlbumAsync() 공개 메소드

Creates an album on imgur, if authorized with OAuth2Authentication then it will be added to the authorised.
public CreateAlbumAsync ( Image images = null, Image coverImage = null, string title = null, string description = null, Privacy privacy = Privacy.Public, AlbumLayout layout = AlbumLayout.Blog ) : Task>
images Image A collection of valid Image's that should be added to this album.
coverImage Image An Imgur Image that want to be the cover of the album (has to be in )
title string The title of the album
description string The description of the album
privacy Privacy The privacy mode of the album
layout AlbumLayout The defualt layout of the album
리턴 Task>

CreateAlbumFromIdsAsync() 공개 메소드

Creates an album on imgur, if authorized with OAuth2Authentication then it will be added to the authorised.
public CreateAlbumFromIdsAsync ( string imageIds = null, string coverImageId = null, string title = null, string description = null, Privacy privacy = Privacy.Public, AlbumLayout layout = AlbumLayout.Blog ) : Task>
imageIds string A collection of ImageId's for valid imgur images that should be added to this album.
coverImageId string The ImageId of the image you want to be the cover of the album (has to be in )
title string The title of the album
description string The description of the album
privacy Privacy The privacy mode of the album
layout AlbumLayout The defualt layout of the album
리턴 Task>

DeleteAlbumAsync() 공개 메소드

Delete an album with a deletion hash
public DeleteAlbumAsync ( string albumDeletionHash ) : Task>
albumDeletionHash string The deletion hash of the album
리턴 Task>

FavouriteAlbumAsync() 공개 메소드

Adds/Removes an album from the authenticated user's favourites. Must be authenticated using OAuth2Authentication to call this Endpoint.
public FavouriteAlbumAsync ( string albumId ) : Task>
albumId string The AlbumId of the album you want to favourite.
리턴 Task>

GetAlbumDetailsAsync() 공개 메소드

Get information about a specific album.
public GetAlbumDetailsAsync ( string albumId ) : Task>
albumId string The id of the album you are requesting.
리턴 Task>

GetAllImagesFromAlbumAsync() 공개 메소드

Get a list of images in a specific album.
public GetAllImagesFromAlbumAsync ( string albumId ) : Task>
albumId string The id of the album you are requesting images from.
리턴 Task>

RemoveImageFromAlbumAsync() 공개 메소드

Removes an image from an album. Must be authenticated using OAuth2Authentication to call this Endpoint
public RemoveImageFromAlbumAsync ( string albumId, string imageId ) : Task>
albumId string The AlbumId of the album you want to remove an image from
imageId string An image id to remove from the album
리턴 Task>

RemoveImagesFromAlbumAsync() 공개 메소드

Removes images from an album. Must be authenticated using OAuth2Authentication to call this Endpoint
public RemoveImagesFromAlbumAsync ( string albumId, string imageIds ) : Task>
albumId string The AlbumId of the album you want to remove images from
imageIds string A collection of image ids to remove from the album
리턴 Task>