Proof of concept code handling calling the TourCMS API with a properly formed signature. Sample code includes calling the Search API as either an Operator or Agent.
- Copy
main.pl
andtourcms.pm
to a directory somewhere - Edit
main.pl
, entering your TourCMS API credentials into themain
sub - Run
perl main.pl
- The sample code will call the Search API, dump the response and die
If your Perl environment is not correctly verifying SSL certificates install Mozilla::CA to get the latest Mozilla Certificate Authority bundle, LWP will use it automatically.