WebService::iThenticate::Request - create request objects for the WebService::iThenticate
# construct a new API request $request = WebService::iThenticate::Request->new( { method => 'login', # required auth => $auth_object, # auth object appropriate to the transport mechanism } ); # make the request using an WebService::iThenticate::Client user agent $response = $client->make_request( { request => $request } ); # dump out the request as a string $string = $request->as_string;
This package scoped hash consists of methods and their required arguments. It is necessary because we cannot always rely on the server to validate request arguments.
# construct a new API request $request = WebService::iThenticate::Request->new({ method => 'login', # required auth => $auth_object, # required });
my $validated_args = eval { $class->validate( $method, $args->{req_args} ) };
Given an xmlrpc method, and a hash reference of key value argument pairs, this returns the corresponding RPC::XML entities. If any arguments are missing or invalid, this method dies with an appropriate error string;
Q: Why are you using this hodge podge validation scheme instead of Params::Validate?
A: To minimize the number of dependencies. Partly evil yes, but easy install is one of the goals of this module.
Plenty at this stage I'm sure. Send patches to the author.
WebService::iThenticate::Client, WebService::iThenticate::Response, RPC::XML
Fred Moyer <fred@iparadigms.com>
Copyright (C) (2012) iParadigms, LLC. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install WebService::iThenticate::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::iThenticate::Client
CPAN shell
perl -MCPAN -e shell install WebService::iThenticate::Client
For more information on module installation, please visit the detailed CPAN module installation guide.