PX::API::Request - A Peekshows Web Services API request.
use PX::API; use PX::API::Request; my $px = PX::API->new({ api_key => '13243432434', #Your api key secret => 's33cr3tttt', #Your api secret }); my $req = PX::API::Request->({ method => 'px.test.echo', args => {}, }); my $resp = $px->execute_request($req);
A Peekshows Web Services API request object. PX::API::Request is an HTTP::Request subclass, allowing access to any request parameters.
PX::API::Request
new($args)
Constructs a new PX::API::Request object. The $args passed to this constructor must contain a method to call. Optionally the constructor will accept args as a list of arguments to pass with the API request.
$args
method
args
HTTP::Request
PX::API http://www.peekshows.com http://services.peekshows.com
Anthony Decena <anthony@1bci.com>
<anthony@1bci.com>
Copyright (c) 2007, Anthony Decena <anthony@1bci.com>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install PX::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PX::API
CPAN shell
perl -MCPAN -e shell install PX::API
For more information on module installation, please visit the detailed CPAN module installation guide.