TomTom::WEBFLEET::Connect - A lightweight wrapper around the TomTom WEBFLEET.connect API in Perl
$connect = new TomTom::WEBFLEET::Connect(...); @objects; $r = $connect->showObjectReport(); if ($r->is_success) { foreach my $i (@{$r->content_arrayref}) { push @objects, $i; } }
Authentication parameters are automatically attached to the API request URL for each request.
required, a WEBFLEET account name
required, a valid WEBFLEET user name belonging to the account
required, the password for the user identified by account and username
The URL to use for the API. Defaults to http://connect.webfleet.tomtomwork.com/extern. Needs to be changed when SSL should be used.
If trace evaluates to true, each request/response pair is logged to a new file in tracedir.
The directory where log files should go to. Defaults to /var/log/wfc.
The filename provided as mockup is used as a response data stream. In this case, no actual request is sent to the API.
API methods are autoloaded, additional parameters can be provided as a hash. No retries are being made neither if a request quota is reached nor on any other error. All methods return a generic TomTom::WEBFLEET::Connect::Response object.
TomTom::WEBFLEET::Connect::Response
Copyright 2006-2010 TomTom International B.V.
All rights reserved.
To install TomTom::WEBFLEET::Connect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TomTom::WEBFLEET::Connect
CPAN shell
perl -MCPAN -e shell install TomTom::WEBFLEET::Connect
For more information on module installation, please visit the detailed CPAN module installation guide.