NAME

WebService::TaobaoIP - Perl interface to Taobao IP API

VERSION

Version 0.03

SYNOPSIS

    use WebService::TaobaoIP;

    my $ti = WebService::TaobaoIP->new('123.123.123.123');

    print $ti->ip;
    print $ti->country;
    print $ti->area;
    print $ti->region;
    print $ti->city;
    print $ti->isp;

DESCRIPTION

The WebService::TaobaoIP is a class implementing Taobao IP API. With it, you can get IP location information.

CONSTRUCTOR METHODS

$ti = WebService::TaobaoIP->new($ip)

This method constructs a new WebService::TaobaoIP object. You need to provide $ip argment.

ATTRIBUTES

The following attribute methods are provided.

$ti->ip

Return IP address.

$ti->country

Return country.

$ti->area

Return area.

$ti->region

Return region.

$ti->city

Return city.

$ti->isp

Return ISP.

AUTHOR

Xiaodong Xu, <xxdlhy at gmail.com>

COPYRIGHT

Copyright 2013 Xiaodong Xu.

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