NAME
API::ParallelsWPB - client for Parallels Presence Builder API
VERSION
version 0.03
SYNOPSIS
my $client = API::ParallelsWPB->new( username => 'admin', password => 'passw0rd', server => 'builder.server.mysite.ru' );
my $response = $client->get_sites_info;
if ( $response->success ) {
for my $site ( @{ $response->response } ) {
say "UUID: ". $site->{uuid};
}
}
else {
warn "Error occured: " . $response->error . ", Status: " . $response->status;
}
METHODS
new($class, %param)
Creates new client instance. Parameters for new
are:
- username
-
Username for connection to Parallels WebPresence Builder instance. Required parameter.
- password
-
Password for connection to Parallels WebPresence Builder instance. Required parameter.
- server
-
Servername or server ip address for connection to Parallels WebPresence Builder instance. Optional parameter.
- api_version
-
API version, used in API url constructing. Optional parameter.
- debug
-
Debug flag, requests will be loogged to stderr. Optional parameter.
- timeout
-
Connection timeout. Optional parameter.
f_request($self, $url_array_ref, $data)
"Free" request. Now for internal usage only.
$data: req_type : HTTP request type: get, post, put, delete. GET by default. post_data: data for POST request. Must be hashref.
SEE ALSO
Parallels Presence Builder Guide
AUTHORS
Alexander Ruzhnikov <a.ruzhnikov@reg.ru>
Polina Shubina <shubina@reg.ru>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by REG.RU LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.