NAME
WWW::Giraffi::API::User - Giraffi API User Method Access Module
VERSION
0.13_03
SYNOPSIS
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);
DESCRIPTION
WWW::Giraffi::API::User is Giraffi API User Method Access Module
METHOD
create
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'
}
};
destroy
Delete user and apikey
Example:
my $delete_apikey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$ create user object
my $user = $g->user;
$user->destroy($delete_apikey);
AUTHOR
Akira Horimoto <emperor@gmail.com>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.