Group
Extension

Matches 2

EVDB-API ( R/RA/RADCLIFF/EVDB-API-0.99.tar.gz, RADCLIFF, 2006; MetaCPAN )
EVDB-API/lib/EVDB/API/JSON.pm ( view source; MetaCPAN )
package EVDB::API::JSON;

use strict;
use warnings;
use Carp;

=head1 NAME

EVDB::API::JSON - Use the JSON flavor of the Eventful API

=head1 SYNOPSIS

    my $evdb    = EVDB::API->new(app_key => $app
-001336058-5' });

=head1 DESCRIPTION

Parses JSON from the Eventful API.

=head1 METHODS

=head2 flavor

Return the flavor name.

=cut

sub flavor { 'json' }

=head2 ctype

Return a checkstring for t
 content type.

=cut

sub ctype { 'javascript' }

=head2 parse

Parse JSON data from the Eventful API using L<JSON::Syck> or L<JSON>.

=cut

sub parse {
    my ($class, $data, $force_array) = @_;

   
EVDB-API ( R/RA/RADCLIFF/EVDB-API-0.99.tar.gz, RADCLIFF, 2006; MetaCPAN )
EVDB-API/lib/EVDB/API.pm ( view source; MetaCPAN )
EVDB::API->new(app_key => $app_key, flavor => 'yaml');

Valid flavors are C<rest>, C<yaml>, and C<json>.

=cut

sub new
{
  my $thing = shift;
  my $class = ref($thing) || $thing;
  
  my %params = @_

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.