C# Class ImgurNet.ApiEndpoints.AccountEndpoint

Inheritance: BaseEndpoint
Show file Open project: 0xdeafcafe/ImgurNet Class Usage Examples

Public Methods

Method Description
AccountEndpoint ( Imgur imgur ) : System

DeleteAccountAlbumAsync ( string deletionHash, string username = "me" ) : Task>

Deletes an album from a user's account. This always requires a deletion hash.

DeleteAccountImageAsync ( string deletionHash, string username = "me" ) : Task>

Deletes an image from a user's account. This always requires a deletion hash.

GetAccountAlbumCountAsync ( string username = "me" ) : Task>

Gets the number of albums the user has uploaded.

This tests throws a "Imgur over capacity error right now.. No idea why

GetAccountAlbumDetailsAsync ( string albumId, string username = "me" ) : Task>

Gets the Details of an album uploaded by an account.

GetAccountAlbumIdsAsync ( string username = "me" ) : Task>

Gets a list of AlbumId's that the account has uploaded

GetAccountAlbumsAsync ( int page, string username = "me" ) : Task>

Gets all albums uploaded by an account. This endpoint is pagniated.

GetAccountDetailsAsync ( string username ) : Task>

Request standard account information

GetAccountImageCountAsync ( string username = "me" ) : Task>

Gets the number of images the user has uploaded.

GetAccountImageDetailsAsync ( string imageId, string username = "me" ) : Task>

Gets the Details of an image uploaded by an account.

GetAccountImageIdsAsync ( string username = "me" ) : Task>

Gets a list of ImageId's that the account has uploaded

GetAccountImagesAsync ( int page, string username = "me" ) : Task>

Gets all images uploaded by an account. This endpoint is pagniated.

Method Details

AccountEndpoint() public method

public AccountEndpoint ( Imgur imgur ) : System
imgur Imgur
return System

DeleteAccountAlbumAsync() public method

Deletes an album from a user's account. This always requires a deletion hash.
public DeleteAccountAlbumAsync ( string deletionHash, string username = "me" ) : Task>
deletionHash string The deletion hash for the album.
username string The username of the account to delete from. Can be ignored if using OAuth2, and it will use that account.
return Task>

DeleteAccountImageAsync() public method

Deletes an image from a user's account. This always requires a deletion hash.
public DeleteAccountImageAsync ( string deletionHash, string username = "me" ) : Task>
deletionHash string The deletion hash for the image.
username string The username of the account to delete from. Can be ignored if using OAuth2, and it will use that account.
return Task>

GetAccountAlbumCountAsync() public method

Gets the number of albums the user has uploaded.
This tests throws a "Imgur over capacity error right now.. No idea why
public GetAccountAlbumCountAsync ( string username = "me" ) : Task>
username string The username to get album count from. Can be ignored if using OAuth2, and it will use that account.
return Task>

GetAccountAlbumDetailsAsync() public method

Gets the Details of an album uploaded by an account.
public GetAccountAlbumDetailsAsync ( string albumId, string username = "me" ) : Task>
albumId string The Id of the album to get details from
username string The username to get the album from. Can be ignored if using OAuth2, and it will use that account.
return Task>

GetAccountAlbumIdsAsync() public method

Gets a list of AlbumId's that the account has uploaded
public GetAccountAlbumIdsAsync ( string username = "me" ) : Task>
username string The username to get album ids from. Can be ignored if using OAuth2, and it will use that account.
return Task>

GetAccountAlbumsAsync() public method

Gets all albums uploaded by an account. This endpoint is pagniated.
public GetAccountAlbumsAsync ( int page, string username = "me" ) : Task>
page int The page of albums to load.
username string The username to get the album from. Can be ignored if using OAuth2, and it will use that account.
return Task>

GetAccountDetailsAsync() public method

Request standard account information
public GetAccountDetailsAsync ( string username ) : Task>
username string The username of the account you want information of.
return Task>

GetAccountImageCountAsync() public method

Gets the number of images the user has uploaded.
public GetAccountImageCountAsync ( string username = "me" ) : Task>
username string The username to get image count from. Can be ignored if using OAuth2, and it will use that account.
return Task>

GetAccountImageDetailsAsync() public method

Gets the Details of an image uploaded by an account.
public GetAccountImageDetailsAsync ( string imageId, string username = "me" ) : Task>
imageId string The Id of the image to get details from
username string The username to get the image from. Can be ignored if using OAuth2, and it will use that account.
return Task>

GetAccountImageIdsAsync() public method

Gets a list of ImageId's that the account has uploaded
public GetAccountImageIdsAsync ( string username = "me" ) : Task>
username string The username to get image count from. Can be ignored if using OAuth2, and it will use that account.
return Task>

GetAccountImagesAsync() public method

Gets all images uploaded by an account. This endpoint is pagniated.
public GetAccountImagesAsync ( int page, string username = "me" ) : Task>
page int The page of images to load.
username string The username to get the images from. Can be ignored if using OAuth2, and it will use that account.
return Task>