NAME
WWW::Giraffi::API - Giraffi API Access Module
VERSION
0.13
SYNOPSIS
use strict;
use warnings;
use WWW::Giraffi::API;
my $apikey = "ilovenirvana_ilovekurtcobain";
my $g = WWW::Giraffi::API->new(apikey => $apikey);
# get all media data
my $arrayref = $g->media->find;
foreach $ref(@{$arrayref}) {
## anything to do...
}
DESCRIPTION
WWW::Giraffi::API is Giraffi API Access Module
ruby giraffi https://github.com/giraffi/giraffi perl binding
GLOBAL VARIABLE
$AGENT
WWW::Giraffi::API/$VERSION
$SSL_VERIFY_HOSTNAME
for LWP::UserAgent ssl_opts(verify_hostname => $this_value). 1
$TIMEOUT
for LWP::UserAgent timeout. 30
$DEFAULT_ENDPOINT
https://papi.giraffi.jp
$MONITORINGDATA_ENDPOINT
https://okapi.giraffi.jp:3007
$APPLOGS_ENDPOINT
https://lapi.giraffi.jp:3443"
ACCESSOR METHOD
apikey
timeout
default_endpoint
applogs_endpoint
monitoringdata_endpoint
verbose
ssl_verify_hostname
METHOD
new
Create WWW::Giraffi::API Object
Example:
my $apikey = "ilovenirvana_ilovekurtcobain";
my $g = WWW::Giraffi::API->new(apikey => $apikey);
Options
apikey giraffi apikey
timeout connection timeout. default 30sec
default_endpoint default_endpoint. default $DEFAULT_ENDPOINT
applogs_endpoint applogs_endpoint. default $APPLOGS_ENDPOINT
monitoringdata_endpoint monitoringdata_endpoint. default $MONITORINGDATA_ENDPOINT
verbose verbose output. default 0
ssl_verify_hostname ssl_verify_hostname(for LWP::UserAgent). default 1
media
Create WWW::Giraffi::API::Media Object
Example:
my $g = WWW::Giraffi::API->new(apikey => $apikey);
my $media = $g->media;
axion
Create WWW::Giraffi::API::Axion Object
Example:
my $axion = $g->axion;
item
Create WWW::Giraffi::API::Item Object
Example:
my $item = $g->item;
service
Create WWW::Giraffi::API::Service Object
Example:
my $service = $g->service;
trigger
Create WWW::Giraffi::API::Trigger Object
Example:
my $trigger = $g->trigger;
AUTHOR
Akira Horimoto <emperor@gmail.com>
API REFERENCE
https://github.com/giraffi/giraffi/wiki
SEE ALSO
Class::XSAccessor Module::Pluggable
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.