WWW::Wookie::Server::Connection - A connection to a Wookie server
This document describes WWW::Wookie::Server::Connection version 0.0.2
use WWW::Wookie::Server::Connection; $c = WWW::Wookie::Server::Connection->new($url, $api_key, $data_key);
A connection to a Wookie server. This maintains the necessary data for connecting to the server and provides utility methods for making common calls via the Wookie REST API.
new
Create a connection to a Wookie server at a given URL.
getURL
Get the URL of the Wookie server. Returns the current Wookie connection's URL as string.
setURL
Set the URL of the Wookie server.
getApiKey
Get the API key for this server. Returns the current Wookie connection's API key as string. Throws a WookieConnectorException.
WookieConnectorException
setApiKey
Set the API key for this server.
getSharedDataKey
Get the shared data key for this server. Returns the current Wookie connection's shared data key. Throws a WookieConnectorException.
setSharedDataKey
Set the shared data key for this server.
as_string
Output connection information as string.
test
Test the Wookie server connection.
Data::Dumper LWP::UserAgent Moose Readonly URI XML::Simple
Please report any bugs or feature requests at RT for rt.cpan.org.
Roland van Ipenburg <ipenburg@xs4all.nl>
<ipenburg@xs4all.nl>
Copyright 2010 Roland van Ipenburg Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
To install WWW::Wookie, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Wookie
CPAN shell
perl -MCPAN -e shell install WWW::Wookie
For more information on module installation, please visit the detailed CPAN module installation guide.