NAME

WWW::Freelancer::User - Provides methods to access information about a specific user.

VERSION

This document describes WWW::Freelancer::User version 0.0.1

SYNOPSIS

use WWW::Freelancer;

my $freelancer = WWW::Freelancer->new();
my $user       = $freelancer->get_user('alanhaggai');

print 'User ID: ',                 $user->get_id(),                "\n";
print 'User profile URL: ',        $user->get_url(),               "\n";
print 'User registration date: ',  $user->get_registration_date(), "\n";

DESCRIPTION

Provides methods to access information about a specific user.

INTERFACE

get_url()

Returns URL of user profile.

get_id()

Returns ID of the user.

get_username()

Returns username of the user.

get_logo_url()

Returns URL of logo or empty string.

get_registration_unixtime()

Returns time when the user was registered in UNIXTIME format.

get_registration_date()

Returns time when the user was registered in RFC 2822 format.

get_company()

Returns company name or empty string if company is not specified.

is_gold()

Returns 1 if the user is a gold member currently, 0 - a non-gold member.

get_address()

Returns an address object. Methods of the object:

get_country()

Returns user's country.

get_city()

Returns user's city.

get_hourlyrate()

Returns hourly rate in US dollars.

get_rating()

Returns rating object. Methods of the object:

get_average()

Returns average value of user's overall rating. Empty - if user has not got any rating yet.

get_count()

Returns number of feedbacks received by user.

get_provider_rating()

Returns provider rating object. Methods of the object:

get_average()

Returns average value of provider's overall rating. Empty - if user has not got any rating yet.

get_count()

Returns number of provider feedbacks received by user.

get_buyer_rating()

Returns buyer rating object. Methods of the object:

get_average()

Returns average value of buyer's overall rating. Empty - if user has not got any rating yet.

get_count()

Returns number of buyer feedbacks received by user.

get_jobs()

Returns array of jobs.

CONFIGURATION AND ENVIRONMENT

WWW::Freelancer::User requires no configuration files or environment variables.

DEPENDENCIES

LWP::UserAgent

Not in CORE

JSON

Not in CORE

INCOMPATIBILITIES

None reported.

BUGS AND LIMITATIONS

No bugs have been reported.

Please report any bugs or feature requests to bug-www-freelancer@rt.cpan.org, or through the web interface at http://rt.cpan.org.

AUTHOR

Alan Haggai Alavi <haggai@cpan.org>

SEE ALSO

LICENCE AND COPYRIGHT

Copyright (c) 2010, Alan Haggai Alavi <haggai@cpan.org>. All rights reserved.

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

DISCLAIMER OF WARRANTY

BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.