Imgur-API
view release on metacpan or search on metacpan
lib/Imgur/API/Endpoint/Account.pm view on Meta::CPAN
package Imgur::API::Endpoint::Account;
use strict;
use Mouse;
extends 'Imgur::API::Endpoint';
sub get {
my ($this,%p) = @_;
return $this->dispatcher->request(
$this->path("3/account/%s",['username'],[],\%p),
'get',
\%p
);
}
sub galleryFavorites {
my ($this,%p) = @_;
return $this->dispatcher->request(
$this->path("3/account/%s/gallery_favorites",['username'],['page','sort'],\%p),
'get',
\%p
);
}
sub favorites {
my ($this,%p) = @_;
return $this->dispatcher->request(
$this->path("3/account/%s/favorites",['username'],['page','sort'],\%p),
'get',
\%p
);
}
sub submissions {
my ($this,%p) = @_;
return $this->dispatcher->request(
$this->path("3/account/%s/submissions/%s",['username','page'],[],\%p),
'get',
\%p
);
}
sub settings {
my ($this,%p) = @_;
return $this->dispatcher->request(
$this->path("3/account/%s/settings",['username'],[],\%p),
'get',
\%p
);
}
sub updateSettings {
my ($this,%p) = @_;
return $this->dispatcher->request(
$this->path("",[],[],\%p),
'put | post',
\%p
);
}
sub profile {
my ($this,%p) = @_;
return $this->dispatcher->request(
$this->path("3/account/%s/gallery_profile",['username'],[],\%p),
'get',
\%p
);
}
sub verifyEmail {
my ($this,%p) = @_;
return $this->dispatcher->request(
$this->path("3/account/%s/verifyemail",['username'],[],\%p),
'get',
\%p
);
}
sub sendVerifyEmail {
my ($this,%p) = @_;
return $this->dispatcher->request(
$this->path("3/account/%s/verifyemail",['username'],[],\%p),
'post',
\%p
);
}
sub albums {
my ($this,%p) = @_;
return $this->dispatcher->request(
$this->path("3/account/%s/albums",['username'],['page'],\%p),
'get',
\%p
);
}
sub album {
my ($this,%p) = @_;
return $this->dispatcher->request(
$this->path("3/account/%s/album/%s",['username','account'],[],\%p),
'get',
\%p
);
}
sub albumIds {
( run in 1.252 second using v1.01-cache-2.11-cpan-e1769b4cff6 )