WWW::Giraffi::API::User - Giraffi API User Method Access Module
0.2_04
use strict; use warnings; use WWW::Giraffi::API; my $apikey = "ilovenirvana_ilovekurtcobain"; my $g = WWW::Giraffi::API->new(apikey => $apikey); # create user my $my_vendor_apikey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; my $ref = $g->user->create($my_vendor_apikey);
WWW::Giraffi::API::User is Giraffi API User Method Access Module
Create User and Publish user apikey
Example:
my $my_vendor_apikey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; $ create user object my $user = $g->user; my $ref = $user->create($my_vendor_apikey);
Return Reference:
{ 'user' => { 'status' => 'enabled', 'permission' => 'wr', 'id' => 22, 'apikey' => 'new_user_apikey' } };
Update user apikey
my $update_apikey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; $ create user object my $user = $g->user; $user->update($delete_apikey);
Delete user and apikey
my $delete_apikey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; $ create user object my $user = $g->user; $user->destroy($delete_apikey);
Akira Horimoto <emperor@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WWW::Giraffi::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Giraffi::API
CPAN shell
perl -MCPAN -e shell install WWW::Giraffi::API
For more information on module installation, please visit the detailed CPAN module installation guide.