Group
Extension

Matches 4

WWW-Snooze ( A/AG/AGJ/WWW-Snooze-0.01_02.tar.gz, AGJ, 2012; MetaCPAN )
WWW-Snooze/lib/WWW/Snooze/Serialize/JSON.pm ( view source; MetaCPAN )
::JSON;

use base 'WWW::Snooze::Serialize';

use strict;
use warnings;

sub new {
    my $class = shift;
    my %args = @_;

    bless {
        extension => 'json',
        mime => 'application/json'
self, $input) = @_;
    my $output = JSON->new->allow_nonref->encode($input);
    return $output;
}

sub decode {
    my ($self, $input) = @_;
    my $output = JSON->new->allow_nonref->decode($input);
WWW-Snooze ( A/AG/AGJ/WWW-Snooze-0.01_02.tar.gz, AGJ, 2012; MetaCPAN )
WWW-Snooze/lib/WWW/Snooze/Request.pm ( view source; MetaCPAN )
::Request;

use strict;
use warnings;
use 5.010;

use WWW::Snooze::Serialize::JSON;

use URI;
use LWP::UserAgent;
use JSON;

our $AUTOLOAD;

sub new {
    my $class = shift;
    my $uri = shift;
    m
> [],
        args => {},
        headers => undef,
        serializer => WWW::Snooze::Serialize::JSON->new(),
        %args
    }, $class;
}

sub AUTOLOAD {
    my $self = shift;
    my $name = $AUTO
   $r->foo();
    # Request URL would be http://example.com/foo.json
    
    $r->foo(42)->bar;
    # http://example.com/foo/42/bar.json
    
    $r->foo(undef, foo => 'bar');
    # http://example.com
WWW-Snooze ( A/AG/AGJ/WWW-Snooze-0.01_02.tar.gz, AGJ, 2012; MetaCPAN )
WWW-Snooze/lib/WWW/Snooze.pm ( view source; MetaCPAN )
, REST operations can be
performed like so:

    use WWW::Snooze;
    use WWW::Snooze::Serialize::JSON;
    use HTTP::Headers;
    use Data::Dumper;

    my $api = WWW::Snooze::request(
        'https
new(
            'X-Zen-ApiKey' => 'key'
        ),
        serializer => WWW::Snooze::Serialize::JSON->new(
            extension => ''
        )
    );

    my $tasks = $api->projects(40075)->storie
WWW-Snooze ( A/AG/AGJ/WWW-Snooze-0.01_02.tar.gz, AGJ, 2012; MetaCPAN )
WWW-Snooze/README.pod ( view source; MetaCPAN )
, REST operations can be
performed like so:

    use WWW::Snooze;
    use WWW::Snooze::Serialize::JSON;
    use HTTP::Headers;
    use Data::Dumper;

    my $api = WWW::Snooze::request(
        'https
new(
            'X-Zen-ApiKey' => 'key'
        ),
        serializer => WWW::Snooze::Serialize::JSON->new(
            extension => ''
        )
    );

    my $tasks = $api->projects(40075)->storie

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