Ingo Miosga > TomTom-WEBFLEET-Connect-2.11 > TomTom::WEBFLEET::Connect

Download:
TomTom-WEBFLEET-Connect-2.11.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 2.11   Source  

NAME ^

TomTom::WEBFLEET::Connect - A lightweight wrapper around the TomTom WEBFLEET.connect API in Perl

SYNOPSIS ^

  $connect = new TomTom::WEBFLEET::Connect(...);
  @objects;
  $r = $connect->showObjectReport();
  if ($r->is_success) {
      foreach my $i (@{$r->content_arrayref}) {
          push @objects, $i;
      }
  }

DESCRIPTION ^

Parameters

Authentication

Authentication parameters are automatically attached to the API request URL for each request.

account

required, a WEBFLEET account name

username

required, a valid WEBFLEET user name belonging to the account

password

required, the password for the user identified by account and username

Environment

base

The URL to use for the API. Defaults to http://connect.webfleet.tomtomwork.com/extern. Needs to be changed when SSL should be used.

trace

If trace evaluates to true, each request/response pair is logged to a new file in tracedir.

tracedir

The directory where log files should go to. Defaults to /var/log/wfc.

mockup

The filename provided as mockup is used as a response data stream. In this case, no actual request is sent to the API.

Methods

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.

SEE ALSO ^

TomTom::WEBFLEET::Connect::Response

COPYRIGHT ^

Copyright 2006-2010 TomTom International B.V.

All rights reserved.

syntax highlighting: