public async Task<ImgurResponse<Album[]>> GetAccountAlbumsAsync(int page = 0, string username = "me")
{
if (ImgurClient.Authentication == null)
throw new InvalidAuthenticationException("Authentication can not be null. Set it in the main Imgur class.");
if (username == "me" && !(ImgurClient.Authentication is OAuth2Authentication))
throw new InvalidAuthenticationException("You need to use OAuth2Authentication to call this Endpoint.");
return
await
Request.SubmitImgurRequestAsync<Album[]>(Request.HttpMethod.Get, String.Format(AccountAlbumsUrl, username, page),
ImgurClient.Authentication);
}