WebService::Pixela::User - It's Pixela User API client


    use strict;
    use warnings;
    use utf8;

    use WebService::Pixela;

    # All WebService::Pixela methods use this token and user name in URI, JSON, etc.
    my $pixela = WebService::Pixela->new(token => "thisissecret", username => "testname");
    print $pixela->username,"\n"; # testname
    print $pixela->token,"\n";    # thisissecret

    $pixela->user->create(); # default agreeTermsOfService and notMinor "yes"
    # or...
    $pixela->user->create(agree_terms_of_service => "yes", not_minor => "no"); # can input agreeTermsOfService and notMinor

    $pixela->user->update("newsecret_token"); # update method require new secret token characters
    print $pixela->token,"\n";

    $pixela->user->delete(); # delete method not require arguments


WebService::Pixela::User is user API client about webservice.


instance methods

This instance method require WebService::Pixela instance. So, Usually use these methods from the WebService::Pixela instance.


It is user create.

%opts might be:

agree_terms_of_service : [yes|no]

Specify yes or no whether you agree to the terms of service. If there is no input, it defaults to yes. (For this module.)

not_minor : [yes|no]

Specify yes or no as to whether you are not a minor or if you are a minor and you have the parental consent of using this (Pixela) service. If there is no input, it defaults to yes. (For this module.)

See also


Updates the authentication token for the specified user.

$newtoken might be:

$newtoken :Str

It is a new authentication token.

See also


Deletes the specified registered user.

See also


Copyright (C) Takahiro SHIMIZU.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


Takahiro SHIMIZU <>