jybgiq
Last Updated: February 25, 2016
·
196
· Goncales
0  ow4ip6vqz5uqdoiqa0nwa0nqiseh7dwfuln6wpvgusd5xoioo14sxfv5jiely06oo0nehkzfmew iyb7mmxih5jemeh wsiommrhdkqt7xkwgtbqh4v8gylork4owdv voqbryjshf

LWP::Simple::REST - A simple procedural interface to HTTP verbs in Perl.

A simple procedural interface to HTTP verbs.

You can use it to request any links that you want, like RESTful APIs requests.

For example:

To receive a json response and decode it:

my $response = http_get( 'https://current.trovebox.com/photos/list.json' );
my $decoded_json = decode_json( $response );

Or just use the method that returns the decoded json:

my $decoded_json = json_get( 'https://current.trovebox.com/photos/list.json' );

Link for the module:
https://github.com/ItaloGoncales/LWP-Simple-REST

Or on CPAN:
https://metacpan.org/pod/LWP::Simple::REST

Say Thanks
Respond