Group
Extension

Matches 35359

WWW-SourceForge ( R/RB/RBOW/WWW-SourceForge-0.73.tar.gz, RBOW, 2016; MetaCPAN )
WWW-SourceForge/lib/WWW/SourceForge.pm ( view source; MetaCPAN )
package WWW::SourceForge;
use strict;
use LWP::Simple qw(get);
use JSON::Parse;
use XML::Feed;
use File::HomeDir;

our $VERSION = '0.73'; # This is the overall version for the entire
# package, so sho
,
        },
        ref($class) || $class
    );

    return $self;
}

=head2 call

 Usage : my $json = $sfapi->call( 
                method => whatever, 
                arg1   => 'value', 
       
rss',
                );
 Returns : Hashref, containing a bunch of data. Format defaults to
     'json', but in some cases, you'll want to force rss because that's
     how the return is available. Wi
StartCom-API ( P/PH/PHILIPPE/StartCom-API-0.2.tar.gz, PHILIPPE, 2016; MetaCPAN )
StartCom-API/lib/StartCom/API.pm ( view source; MetaCPAN )
ts at unixadm dot org>
#

use strict;
use warnings;

use IO::Socket::SSL;
use LWP::UserAgent;
use JSON;
use MIME::Base64;

our $VERSION = "0.2";

sub new {bless {'success' => 1}, $_[0]}

sub success {
or'} = "could not set up user agent";
		return 0
	}
	1
}

sub processResponse {
	my $res = decode_json $_[1];
	unless ($res->{'status'} == 1) {
		$_[0]->{'success'} = 0;
		$_[0]->{'error'} = sprintf "
>post(
		'https://api'.($_[0]->{'test'}?'test':'').'.startssl.com/', {
			'RequestData' => encode_json {
				'tokenId' => $_[0]->{'tokenID'},
				'actionType' => 'ApplyCertificate',
				'certType' => 
Perinci-Sub-Property-result_postfilter ( P/PE/PERLANCAR/Perinci-Sub-Property-result_postfilter-0.10.tar.gz, PERLANCAR, 2016; MetaCPAN )
Perinci-Sub-Property-result_postfilter/lib/Perinci/Sub/Property/result_postfilter.pm ( view source; MetaCPAN )
 see L<Data::Clean::JSON>.

This property specifies postfilters for function result. Currently the focus of
this property is converting values that are unsafe when exporting to JSON/YAML.

Value: a ha
oder's facility, for example the L<JSON>
module can convert blessed object:

 use JSON 2;
 my $encoder = JSON->new->convert_blessed;
 {
     local *DateTime::TO_JSON = sub { $_[0]->ymd };
     print $
encoder->encode($doc);
 }

But this currently can't convert coderefs. JSON also can't handle circular
references, which neither this wrapper property nor the above way can work
around.

=head1 HOMEPAG
WebService-Raygun ( H/HE/HEYTRAV/WebService-Raygun-0.030.tar.gz, HEYTRAV, 2016; MetaCPAN )
WebService-Raygun/lib/WebService/Raygun/Message/Error.pm ( view source; MetaCPAN )
      return [];
    },
);

=head2 prepare_raygun

Prepare the error structure to be converted to JSON and sent to raygun.io.

=cut

sub prepare_raygun {
    my $self = shift;
    return {
        inn
WebService-Raygun ( H/HE/HEYTRAV/WebService-Raygun-0.030.tar.gz, HEYTRAV, 2016; MetaCPAN )
WebService-Raygun/lib/WebService/Raygun/Message.pm ( view source; MetaCPAN )
s://metacpan.org/pod/WebService::Raygun'
    };
}

=head2 prepare_raygun

Converts a Perl hash to JSON.

=cut

sub prepare_raygun {
    my $self      = shift;
    my $formatter = DateTime::Format::Str
Net-RocketChat ( D/DA/DALEEVANS/Net-RocketChat-0.002.tar.gz, DALEEVANS, 2016; MetaCPAN )
Net-RocketChat/lib/Net/RocketChat.pm ( view source; MetaCPAN )
le scripts in the distribution.

=cut

use Moose;
use Method::Signatures;
use LWP::UserAgent;
use JSON;
use YAML;

=head1 ATTRIBUTES

=over

=item debug

If debug is set, lots of stuff will get dumped
$self->debug) {
      print STDERR Dump($self->response);
   }
   my $json = decode_json($self->response->content);
   return $json->{versions};
}

=item login

Logs in.

=cut

method login {
   $self
int STDERR Dump($self->response);
   }
   my $json = decode_json($self->response->content);
   my $userId = $json->{data}{userId};
   my $authToken = $json->{data}{authToken};
   $self->userId($userId
Sailthru-Client ( W/WZ/WZHANG/Sailthru-Client-2.3.0.tar.gz, WZHANG, 2016; MetaCPAN )
Sailthru-Client/lib/Sailthru/Client.pm ( view source; MetaCPAN )
package Sailthru::Client;

use strict;
use warnings;

use Carp;
use JSON::XS;
use LWP::UserAgent;
use Digest::MD5 qw( md5_hex );
use Params::Validate qw( :all );
use Readonly;
use URI;

our $VERSION =
LAR } );
    my ( $action, $data, $request_type ) = @params;
    my $payload    = $self->_prepare_json_payload($data);
    my $action_uri = $API_URI . $action;
    my $response   = $self->_http_reques
            reset => $response->header('x-rate-limit-reset')
         };
    }

    return decode_json( $response->content );
}

# args:
# * uri - scalar
# * data - hashref
# * method - scalar
sub _ht
WebService-Ooyala ( V/VR/VROOM/WebService-Ooyala-0.03.tar.gz, VROOM, 2016; MetaCPAN )
WebService-Ooyala/lib/WebService/Ooyala.pm ( view source; MetaCPAN )
pe qw(uri_escape);
use LWP::UserAgent;
use Carp qw(croak);
use Digest::SHA qw(sha256_base64);
use JSON;

=head1 NAME

WebService::Ooyala - Perl interface to Ooyala's API, currently only read
operation
path, $body, $params) = @_;

	my $path = "/" . $self->{api_version} . "/" . $relative_path;

	my $json_body = {};

	my $url =
		$self->build_path_with_authentication_params($http_method, $path,
		$par
ailed to GET $full_url - " . $resp->status_line;
		}

		if ($resp->is_success) {
			return decode_json($resp->decoded_content);
		}
	} else {
		croak
			"Trying to call a method that is not implemente
WebService-SendGrid ( J/JL/JLLOYD/WebService-SendGrid-1.03.tar.gz, JLLOYD, 2016; MetaCPAN )
WebService-SendGrid/lib/WebService/SendGrid/Profile.pm ( view source; MetaCPAN )
d::Signatures;
use namespace::autoclean;

extends 'WebService::SendGrid';

use URI;
use Carp;
use JSON::XS;
use Mail::RFC822::Address qw(valid);

has 'first_name' => ( is => 'rw', isa => 'Str', requir
e_request('/api/profile.get.json', {});
  my $res = $self->_dispatch_request($req);
  return $self->_process_error($res) if $res->code != 100;
	my $content = ${ decode_json $res->content }[0];
	
	# it
e_request('/api/profile.set.json', \%data);
  my $res = $self->_dispatch_request($req);
	return $self->_process_error($res) if $res->code != 200;
	my $content = decode_json $res->content;
  
}

method
SMS-Send-Retarus ( A/AB/ABRAXXA/SMS-Send-Retarus-0.001.tar.gz, ABRAXXA, 2016; MetaCPAN )
SMS-Send-Retarus/lib/SMS/Send/Retarus.pm ( view source; MetaCPAN )
 webservice

use Carp;
use HTTP::Tiny;
use URI::Escape qw( uri_escape );
use JSON::MaybeXS qw( decode_json encode_json JSON );
use Try::Tiny;
use Exception::Class (
    'SMS::Send::Retarus::Exception'
> {

            # to ensure the response is JSON
            'accept' => 'application/json; charset=utf-8',
            'content-type' => 'application/json; charset=utf-8',
        },
        timeout

            content => encode_json(\%message),
        }
    );

    if ( $response->{success} ) {
        my $content;
        try {
            $content = decode_json( $response->{content} );
     
RackMan ( S/SA/SAPER/RackMan-1.19.tar.gz, SAPER, 2016; MetaCPAN )
RackMan/lib/RackMan/Tasks.pm ( view source; MetaCPAN )
n::Format::LDAP::make_ldif($self);
    }
    elsif ($opts->{as} eq "json") {
        require JSON;
        $dump = JSON::encode_json(\%struct);
    }
    elsif ($opts->{as} eq "perl") {
        $dump 
$dump = $dumper->Dump;
        }

        # add a newline if output is missing one (typically for JSON)
        $dump .= "\n" unless $dump =~ /\n$/;

        return print $dump
    }
    else {
      
s set,
otherwise returns the result.

B<Arguments>

=over

=item *

C<as> - specify the format: C<json>, C<perl>, C<yaml>

=back


=head2 task_info

Print information about the RackObject


=head2 tas
WebService-Pingboard-REST ( R/RC/RCL/WebService-Pingboard-REST-0.002.tar.gz, RCL, 2016; MetaCPAN )
WebService-Pingboard-REST/lib/WebService/Salesforce/REST.pm ( view source; MetaCPAN )
oseX::WithCache;
use LWP::UserAgent;
use HTTP::Request;
use HTTP::Headers;
use HTTP::Message;
use JSON;
use Class::Date qw/gmdate/;
use POSIX; #strftime
use YAML qw/Dump LoadFile DumpFile/;
use Encode
g'   => HTTP::Message::decodable ); # Enable compression
    $h->header( 'Accept'	=> "application/json" );
    my $data = $self->request_from_api(
        headers     => $h,
        uri         => 'ht
     => "application/json" );
        $h->header( 'Accept-Encoding'   => HTTP::Message::decodable ); # Enable compression
        $h->header( 'Accept'	        => "application/json" );
        $h->head
Task-BeLike-SCHWIGON ( S/SC/SCHWIGON/Task-BeLike-SCHWIGON-0.007.tar.gz, SCHWIGON, 2016; MetaCPAN )
Task-BeLike-SCHWIGON/lib/Task/BeLike/SCHWIGON.pm ( view source; MetaCPAN )
=head3 L<File::Slurper>

=head3 L<File::Type>

=head3 L<Hash::Merge>

=head3 L<JSON>

=head3 L<JSON::Syck>

=head3 L<JSON::XS>

=head3 L<List::AllUtils>

=head3 L<List::MoreUtils>

=head3 L<Log::Log4p
Google-DNS ( B/BA/BAYASHI/Google-DNS-0.02.tar.gz, BAYASHI, 2016; MetaCPAN )
Google-DNS/lib/Google/DNS.pm ( view source; MetaCPAN )
t;
use warnings;
use Carp qw/croak/;
use URI::Escape qw/uri_escape/;
use HTTP::Tiny;
use JSON::PP qw/decode_json/;
use Class::Accessor::Lite (
    rw => [qw/
        cd
        type
        endpoint
 
es->{status} $res->{reason}" unless $res->{success};
    my $json = $res->{content};
    return $json if $raw;
    return decode_json($json);
}

sub data {
    my ($self, $domain, $delimi) = @_;

    
HTML-Template-Compiled ( T/TI/TINITA/HTML-Template-Compiled-1.003.tar.gz, TINITA, 2016; MetaCPAN )
HTML-Template-Compiled/lib/HTML/Template/Compiled/Utils.pm ( view source; MetaCPAN )
ape_ijson

  my $escaped_js = escape_ijson($raw_js);

JavaScript-escapes the input string except for the apostrophe and returns it,
so it can be used within a JSON element.

=cut

sub escape_ijson {
 
WebService-Raygun ( H/HE/HEYTRAV/WebService-Raygun-0.030.tar.gz, HEYTRAV, 2016; MetaCPAN )
WebService-Raygun/lib/WebService/Raygun/Message/User.pm ( view source; MetaCPAN )
aygun> method may be called to retreive the structure in a form
that can be converted directly to JSON.


=head1 INTERFACE

=cut


use Data::GUID 'guid_string';
use Mouse::Util::TypeConstraints;

subt
WebService-Raygun ( H/HE/HEYTRAV/WebService-Raygun-0.030.tar.gz, HEYTRAV, 2016; MetaCPAN )
WebService-Raygun/lib/WebService/Raygun/Message/Environment.pm ( view source; MetaCPAN )
aygun> method may be called to retreive the structure in a form
that can be converted directly to JSON.


=head1 INTERFACE

=cut

use Filesys::DfPortable;
use Sys::Info;
use Sys::Info::OS;
use POSIX (
WebService-Raygun ( H/HE/HEYTRAV/WebService-Raygun-0.030.tar.gz, HEYTRAV, 2016; MetaCPAN )
WebService-Raygun/lib/WebService/Raygun/Message/Error/StackTrace.pm ( view source; MetaCPAN )
 => sub {
        return '';
    },
);

=head2 prepare_raygun

Prepare the data for conversion to JSON.

=cut

sub prepare_raygun {
    my $self = shift;
    return {
        lineNumber => $self->line
WebService-Raygun ( H/HE/HEYTRAV/WebService-Raygun-0.030.tar.gz, HEYTRAV, 2016; MetaCPAN )
WebService-Raygun/lib/WebService/Raygun/Messenger.pm ( view source; MetaCPAN )

C<RAYGUN_API_KEY> environment variable.

=cut

use LWP::UserAgent;
use URI;
use Mozilla::CA;
use JSON;

use WebService::Raygun::Message;

has api_key => (
    is       => 'rw',
    isa      => 'Str',
$ua      = $self->user_agent;
    my $json    = JSON->new->allow_nonref;
    my $jsoned  = $json->pretty->encode( $message->prepare_raygun );
    ### json : $jsoned
    my $req = HTTP::Request->new( P
req->header( 'Content-Type' => 'application/json' );
    $req->header( 'X-ApiKey'     => $api_key );
    $req->content($jsoned);
    ### json message : $jsoned;
    my $response = $ua->request($req);
WebService-SendGrid ( J/JL/JLLOYD/WebService-SendGrid-1.03.tar.gz, JLLOYD, 2016; MetaCPAN )
WebService-SendGrid/lib/WebService/SendGrid/Mail.pm ( view source; MetaCPAN )
d::Signatures;
use namespace::autoclean;

extends 'WebService::SendGrid';

use URI;
use Carp;
use JSON::XS;
use DateTime::Format::HTTP;

use Mail::RFC822::Address qw(valid);
subtype 'Email', as 'Str',
headers' => ( is => 'rw', isa => 'HashRef', required => 0 );
# A collection of key/value pairs in JSON format
has 'date' => ( is => 'rw', isa => 'Str', required => 1, default => sub {
  DateTime::Form
ate_request('/api/mail.send.json', \%data);
  my $res = $self->_dispatch_request($req);
	return $self->_process_error($res) if $res->code != 100;
	my $content = decode_json $res->content;
	
}

1;

__E

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