Use any version of JSON RPC over any libwww supported transport protocols.
use JSON::RPC::LWP; my $rpc = JSON::RPC::LWP->new( from => 'firstname.lastname@example.org', agent => 'Example ', ); my $login = $rpc->call( 'https://us1.lacunaexpanse.com/empire', # uri 'login', # service [$empire,$password,$api_key] # JSON container );
JSON::RPC::Common provides a useful API for a version, and transport, agnostic JSON remote procedure calls. It does not however provide any transport protocol itself. Instead we use LWP::UserAgent to handle the transport.
This software is copyright© 2011 by Brad Gilbert.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.