Λόρδος Σπύρος Δεναξάς > WebService-TWFY-API > WebService::TWFY::Response

Download:
WebService-TWFY-API-0.07.2.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.07   Source  

NAME ^

WebService::TWFY::Response - API interface for TheyWorkForYou.com

VERSION ^

Version 0.07

SYNOPSIS ^

  use WebService::TWFY::API ;
  
  my $rh = { key => 'ABC123' }; 
  my $api = WebService::TWFY::API->new( $rh ) ;

  my $rv = $api->query ( 'getConstituency', { 'postcode' => 'W128JL'
                                              'output'   => 'xml',
                                             } ) ;

  if ($rv->{is_success}) {
  
    my $results = $rv->{results} ;
    ### do whatever with results
  
  }

DESCRIPTION ^

This module encapsulates a response from the API. WebService::TWFY::Response is essentially a subscall of HTTP::Response.

SUPPORT ^

Please feel free to send any bug reports and suggestions to my email listed below.

For more information and useless facts on my life, you can also check my blog:

  http://ffffruit.com/

AUTHOR ^

    Spiros Denaxas
    CPAN ID: SDEN
    s [dot] denaxas [@] gmail [dot]com
    http://ffffruit.com

SOURCE CODE ^

The source code for his module is now on github https://github.com/spiros/WebService-TWFY-API

COPYRIGHT ^

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

SEE ALSO ^

WebService::TWFY::API, WebService::TWFY::Request, http://www.theyworkforyou.com/api/, http://www.theyworkforyou.com/

syntax highlighting: