Group
Extension

Matches 35359

Google-Voice ( T/TE/TEMPIRE/Google-Voice-0.06.tar.gz, TEMPIRE, 2013; MetaCPAN )
Google-Voice/lib/Google/Voice/Call.pm ( view source; MetaCPAN )
f->ua(shift);

  return $self;
}

sub cancel {
  my $self = shift;
  my ($from, $to) = @_;

  my $json = $self->ua->post(
    'https://www.google.com/voice/call/cancel/' => form => {
      forwardingN
',
      _rnr_se          => $self->rnr_se
    }
  )->res->json;

  $@ = $json->{data}->{code} and return unless $json->{ok};

  return $json->{ok};
}

1;

=head1 NAME

Google::Voice::Call

=head1 DES
Wight-Chart ( E/EL/ELLIOTT/Wight-Chart-0.003.tar.gz, ELLIOTT, 2013; MetaCPAN )
Wight-Chart/lib/Wight/Chart.pm ( view source; MetaCPAN )
ON

use strictures 1;
use Moo;
use Wight;
use Encode;
use File::Share qw/dist_file/;
use Cwd;
use JSON::XS;

has 'output' => ( is => 'rw', default => sub { 'example.png'} );
has 'rows' => ( is => 'rw'
App-Microsite-Assemble ( S/SA/SARTAK/App-Microsite-Assemble-0.03.tar.gz, SARTAK, 2013; MetaCPAN )
App-Microsite-Assemble/lib/App/Microsite/Assemble.pm ( view source; MetaCPAN )
semble a microsite with Handlebars
use strict;
use warnings;
use File::Next;
use Path::Class;
use JSON;
use Try::Tiny;
use Text::Handlebars;
use Text::Xslate 'mark_raw';

sub assemble {
    my $class 
andlebars',
        content_name     => 'content.handlebars',
        config_name      => 'config.json',
        templates_dir    => 'templates/',
        fragments_dir    => 'fragments/',
        bui
$child->is_dir;

            # any level in the hierarchy can have a wrapper.handlebars or config.json
            next if $child->basename eq $args->{wrapper_name}
                 || $child->basenam
Wight-Chart ( E/EL/ELLIOTT/Wight-Chart-0.003.tar.gz, ELLIOTT, 2013; MetaCPAN )
Wight-Chart/lib/Wight/Chart/Google.pm ( view source; MetaCPAN )
CT: Save google charts to images using phantomjs

our $VERSION = '0.003'; # VERSION

use Moo;
use JSON::XS;
use Encode;
extends 'Wight::Chart';
sub src_html { 'google.html' }

#TODO: import roles for 
$self->height - $self->border,
    },
    %{$self->options}
  };

  my $args = decode_utf8(encode_json({
    options => $options,
    type => $types->{$self->type},
    rows => $self->rows,
    column
Google-Voice ( T/TE/TEMPIRE/Google-Voice-0.06.tar.gz, TEMPIRE, 2013; MetaCPAN )
Google-Voice/lib/Google/Voice.pm ( view source; MetaCPAN )
package Google::Voice;

use strict;
use warnings;

use Mojo::UserAgent;
use Mojo::JSON;
use IO::Socket::SSL 1.37;

use Google::Voice::Feed;
use Google::Voice::Call;

use Mojo::Base -base;

our $VERSIO
nd_sms {
    my $self = shift;
    my $c    = $self->ua;
    my ($phone, $content) = @_;

    my $json = $c->post(
        'https://www.google.com/voice/b/0/sms/send',
        form => {   id          
      _rnr_se     => $self->rnr_se
        }
    )->res->json;

    $@ = $json->{data}->{code} and return unless $json->{ok};

    return $json->{ok};
}

for my $feed (
    qw/ all starred spam trash 
Wight-Chart ( E/EL/ELLIOTT/Wight-Chart-0.003.tar.gz, ELLIOTT, 2013; MetaCPAN )
Wight-Chart/lib/Wight/Chart/ChartJS.pm ( view source; MetaCPAN )
package Wight::Chart::ChartJS;

use Moo;
use JSON::XS;
use Encode;
use Graphics::Color::RGB;
extends 'Wight::Chart';

our $VERSION = '0.003'; # VERSION

#TODO: import roles for each type for more opti
park => { cls => "Line", config => {
    scaleShowLabels => JSON::XS::false,
    pointDot => JSON::XS::false,
    scaleShowGridLines => JSON::XS::false,
  }},
  bar => { cls => "Bar" },
  radar => { c
_;
  my $w = $self->wight;

  my $src = $types->{$self->type};

  my $config = {
    animation => JSON::XS::false,
    %{$src->{config} || {} },
    %{$local_config || {} },
  };

  #if type is spark,
Plack-Middleware-BetterStackTrace ( G/GU/GUNYA/Plack-Middleware-BetterStackTrace-0.02.tar.gz, GUNYA, 2013; MetaCPAN )
Plack-Middleware-BetterStackTrace/lib/Plack/Middleware/BetterStackTrace.pm ( view source; MetaCPAN )
008005;
use strict;
use warnings;

our $VERSION = "0.02";

use parent qw/Plack::Middleware/;

use JSON;
use Try::Tiny;
use Data::Dumper;
use Text::Xslate;
use Plack::Request;
use Term::ANSIColor;
use 
ype", "application/json");
        req.send(JSON.stringify(opts));
        req.onreadystatechange = function() {
            if(req.readyState == 4) {
                var res = JSON.parse(req.response
THOR

Tasuku SUENAGA a.k.a. gunyarakun E<lt>tasuku-s-github@titech.acE<gt>

=head1 TODO

- REPL
- JSON response

=head1 SEE ALSO

L<Plack::Middleware::StackTrace> L<Devel::StackTrace::AsHTML> L<Plack:
Google-Voice ( T/TE/TEMPIRE/Google-Voice-0.06.tar.gz, TEMPIRE, 2013; MetaCPAN )
Google-Voice/lib/Google/Voice/Feed.pm ( view source; MetaCPAN )
y $json = $self->ua->post(
    'https://www.google.com/voice/inbox/deleteMessages' => form => {
      messages => $self->id,
      trash    => 1,
      _rnr_se  => $self->rnr_se
    }
  )->res->json;

  $@ = $json->{data}->{code} and return unless $json->{ok};

  return $json->{ok};
}

sub download {
  my $self = shift;
  my ($from, $to) = @_;

  my $res = $self->ua->get(
    'https://www.google.c
Cake ( M/MA/MAMOD/Cake-0.006_2.tar.gz, MAMOD, 2013; MetaCPAN )
Cake/lib/Cake/Plugins/Static.pm ( view source; MetaCPAN )
    "jpg"      =>  "image/jpeg",
    "js"       =>  "application/javascript",
    "json"     =>  "application/json",
    "log"      =>  "text/plain",
    "m3u"      =>  "audio/x-mpegurl",
    "m4
Cake ( M/MA/MAMOD/Cake-0.006_2.tar.gz, MAMOD, 2013; MetaCPAN )
Cake/lib/Cake/Plugins/I18N.pm ( view source; MetaCPAN )
ash;
}

1;

__END__

=head1 NAME

Cake::Plugin::I18N

=head1 SYNOPSIS
    
    ##in your settings.json
    {
        "plugins" : [
            "I18N" : {
                "path" : "/full/path/to/your/l
Bessarabv-Weight ( B/BE/BESSARABV/Bessarabv-Weight-1.0.0.tar.gz, BESSARABV, 2013; MetaCPAN )
Bessarabv-Weight/lib/Bessarabv/Weight.pm ( view source; MetaCPAN )
CT: get Ivan Bessarabov's weight data


use strict;
use warnings;
use Carp;

use LWP::Simple;
use JSON;
use Time::Local;

my $true = 1;
my $false = '';


sub new {
    my ($class, %opts) = @_;

    cr
";
    }
}

sub __get_data {
    my ($self) = @_;

    my $json = get("http://ivan.bessarabov.ru/weight.json");
    my $data = from_json($json);

    my $day_data = $data->[0]->{day};

    my %date2we
Cake ( M/MA/MAMOD/Cake-0.006_2.tar.gz, MAMOD, 2013; MetaCPAN )
Cake/lib/Cake/Utils/Serializer.pm ( view source; MetaCPAN )
 shift},$class);
}

sub true {'true' }
sub false { undef }
sub null { 'null' }
    
##from json to perl
sub to_perl {
    my $self = shift;
    #remove comments
    $self->{data} =~ s/\n+\s
ata";
    croak "invalid json" if $@;
    
    #return bless($str,'Cake::Utils::Serializer::Base');
    
    return $str;
    return _stringify($data);
}

sub to_json {
    my $self = shift;
1)->Pair(' : ');
    my $json = $dumper->Dump;
    $json =~ s/(?:'((.*?)[^\\'])?')/$1 ? '"'.$1.'"' : '""'/ge;
    $json =~ s/\\'/'/g;
    $json =~ s/\\\\/\\/g;
    $json =~ s/(\\x\{(.*?)\})/chr(h
Confman ( M/MA/MASAHJI/Confman-0.04.tar.gz, MASAHJI, 2013; MetaCPAN )
Confman/lib/Confman/API.pm ( view source; MetaCPAN )
package Confman::API;

use strict;
use IO::File;
use JSON;
use REST::Client;
use MIME::Base64;
use Digest::MD5 qw(md5_hex);


sub new {
  my $class = shift;
  my $self = bless({}, ref($class) || $clas
g_dir} ||= "/etc/confman";
  $self->{json} = JSON->new->allow_nonref;
  $self;
}

sub config_path {
  my $self = shift;
  return $self->{config_dir} . "/config.json"
}

sub api_key {
  my $self = shif
g_path) {
    my $fh = IO::File->new($config_path);
    local $/ = undef;
    my $config = $self->json->decode(<$fh>);
    $fh->close();

    while(my ($key, $value) = each(%$config)) {
      $self->{
Config-ZOMG ( F/FR/FREW/Config-ZOMG-1.000000.tar.gz, FREW, 2013; MetaCPAN )
Config-ZOMG/lib/Config/ZOMG.pm ( view source; MetaCPAN )
my/application/my_application_local.{yml,yaml,cnf,conf,jsn,json,...}

and

 path/to/my/application/my_application.{yml,yaml,cnf,conf,jsn,json,...}

... and load the found configuration information app
Cake ( M/MA/MAMOD/Cake-0.006_2.tar.gz, MAMOD, 2013; MetaCPAN )
Cake/lib/Cake.pm ( view source; MetaCPAN )
==============================================
# Load Settings from outer file / must be a valid json file
#============================================================================
sub loadSett
ake::Utils::get_file($file);
    }; if ($@){
        die "can't open file $file";
    }
    ##json to perl
    return Cake::Utils->serialize($conf)->to_perl;
}

#==============================
lf->body(Dumper $data);
}

sub json {
    my $self = shift;
    my $data = shift;
    if (ref $data eq 'HASH'){
        $data = $self->serialize($data)->to_json;
    }
    $self->content_type
Net-BrowserID-Verify ( C/CH/CHILTS/Net-BrowserID-Verify-0.003.tar.gz, CHILTS, 2013; MetaCPAN )
Net-BrowserID-Verify/lib/Net/BrowserID/Verify.pm ( view source; MetaCPAN )
:UserAgent;
use JSON::Any;
use HTTP::Request::Common qw(POST);

our @EXPORT_OK = qw(verify_remotely);
my $REMOTE_VERIFIER = 'https://verifier.login.persona.org/verify';

my $json = JSON::Any->new;

ha
ata;

    if ($resp->is_success) {
        my $message = $resp->decoded_content;
        $data = $json->decode($message);
    }
    else {
        $data = {
            status => 'failure',
          
Tree-Ternary ( M/MR/MROGASKI/Tree-Ternary-0.04.tar.gz, MROGASKI, 2013; MetaCPAN )
Tree-Ternary/changes.pod ( view source; MetaCPAN )
rected links in the README and POD.

=item Added:

Replaced Changes with changes.pod.

Added META.json.

=back

=head2 0.03	(23 Sep 1999)

=over 4

=item Fixed:

Reduced ATTRIBUTES setup to a single e
Message-Passing-Output-MongoDB ( I/IC/ICIBIN/Message-Passing-Output-MongoDB-0.052.tar.gz, ICIBIN, 2013; MetaCPAN )
Message-Passing-Output-MongoDB/lib/Message/Passing/Output/MongoDB.pm ( view source; MetaCPAN )
ge::Passing>, send output to MongoDB

=head1 METHODS

=over

=item consume

Consumes a message by JSON encoding it save it in MongoDB

=back

=head1 ATTRIBUTES

=over

=item database

Required, Str, t
Bio-JBrowse-Store-NCList ( R/RB/RBUELS/Bio-JBrowse-Store-NCList-0.1.tar.gz, RBUELS, 2013; MetaCPAN )
Bio-JBrowse-Store-NCList/lib/Bio/JBrowse/Store/NCList/LazyNCList.pm ( view source; MetaCPAN )
List nesting, among other things, it's hard to be exactly
        # precise about the size of the JSON serialization, but this will get
        # us pretty close.
        my $featSize     = $self->{me
Catmandu-Importer-MODS ( N/NJ/NJFRANCK/Catmandu-Importer-MODS-0.1.tar.gz, NJFRANCK, 2013; MetaCPAN )
Catmandu-Importer-MODS/lib/Catmandu/Importer/MODS.pm ( view source; MetaCPAN )
 isa => sub {
    my $t = $_[0];
    is_string($t) && array_includes([qw(xml json)],$t) || die("type must be 'xml' or 'json'");
  },
  default => sub { 'xml'; },
  lazy => 1
);

sub generator {
  my($
Collection
    state $mods = do {
      #MODS::Record->from_json expects binary input (decode_json is applied)
      if($self->type eq "json"){
        $self->fh->binmode(":raw");
      }
      my $m 
= $self->type eq "xml" ? MODS::Record->from_xml($self->fh) : MODS::Record->from_json($self->fh);
      my $res = ref($m) eq "MODS::Element::Mods" ? [$m] : $m->mods;
      $res;
    };
    return $i < 

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