NAME
WWW::Facebook::API::REST::Client::Base - Base class for Client
VERSION
This document describes WWW::Facebook::API::REST::Client::Base version 0.0.2
SYNOPSIS
use WWW::Facebook::API::REST::Client::Base;
DESCRIPTION
Base methods and data for WWW::Facebook::API::REST::Client and friends.
SUBROUTINES/METHODS
- call
-
The method which other submodules within WWW::Facebook::API::REST::Client use to call the Facebook REST interface. It takes in a hash signifying the method to be called (e.g., 'auth.getSession'), the parameters to pass through, and (optionally) the secret to use.
- mech
-
The WWW::Mechanize agent used to communicate with the REST server. Shouldn't be needed for anything. The agent_alias is set to "Perl-WWW-Facebook-API-REST-Client/$VERSION".
- server_uri
-
The server uri to access the Facebook REST server. See the Facebook API documentation.
- secret
-
For a desktop application, this is the secret that is used for calling create_token and get_session. See the Facebook API documentation under Authentication. If no secret is passed in to the
new
method, it will prompt for one to be entered from STDIN - api_key
-
The developer's API key. See the Facebook API documentation. If no api_key is passed in to the
new
method, it will prompt for one to be entered from STDIN - session_secret
-
The session secret for the client's user. See the Facebook API documentation.
- session_key
-
The session key for the client's user. See the Facebook API documentation.
- desktop
-
A boolean signifying if the client is being used for a desktop application. See the Facebook API documentation.
- errors
-
See WWW::Facebook::API::REST::Client::Errors. Basically, a grouping of the data that handles errors and debug information.
INTERNAL METHODS AND FUNCTIONS
- _post_request
-
Used by
call
to post the request to the REST server and return the response. - _create_post_params_from
-
Creates string from the given hash ref by sorting the hash by key and concatenating the uri_escape'd key value pair to to the string.
- _api_generate_sig
-
Generates and returns an md5_hex signature of the parameters for the method call.
DIAGNOSTICS
XML not returned from REST call
-
This means that there's most likely an error in the server you are using to communicate to the Facebook REST server. Double-check that
server_uri
is set to the right location.
See WWW::Facebook::API::REST::Client::Errors.
CONFIGURATION AND ENVIRONMENT
WWW::Facebook::API::REST::Client::Base requires no configuration files or environment variables.
DEPENDENCIES
Moose WWW::Mechanize XML::Simple Digest::MD5 Time::HiRes URI::Escape
INCOMPATIBILITIES
None.
BUGS AND LIMITATIONS
No bugs have been reported.
Please report any bugs or feature requests to bug-www-facebook-api-rest-client@rt.cpan.org
, or through the web interface at http://rt.cpan.org.
AUTHOR
David Romano <unobe@cpan.org>
LICENSE AND COPYRIGHT
Copyright (c) 2006, David Romano <unobe@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 LICENSE, 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.