SugarSync::API - Basic API to SugarSync cloud file sharing.
use SugarSync::API; my $sushi = SugarSync::API->new( $username, $password ); $sushi->get_userinfo; say "My SugarSync nickname is ", $sushi->{nickname};
Data structures are discussed in SugarSync::API::Data.
Create a new API object.
If you pass a username and password, the object will be authorized. Otherwise, an explicit call to the method get_auth is required.
get_auth
Get the authorization token for subsequent calls and stores it internally to be used with other method calls.
Returns the authorization token.
Retrieves the user info, e.g., quota, shared folders and so on.
Returns the data for the shared folders.
Retrieves detailed information for a shared folder.
Retrieves the files data for a folder.
Retrieves the collections data for a folder.
Retrieves the raw data for a given url.
Handles basic errors, like 401 (authentication token expired) and temporary server failures.
Retrieves the XML data for a given url and returns it as a Perl structure.
Optionally, dumps (using Data::Dumper) the structure to STDERR.
Experimental.
SugarSync::API::Data
Johan Vromans, <jv at cpan.org>
<jv at cpan.org>
Please report any bugs or feature requests to bug-sugarsync-api at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SugarSync-API. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-sugarsync-api at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc SugarSync::API perldoc SugarSync::API::Data
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=SugarSync-API
CPAN Ratings
http://cpanratings.perl.org/d/SugarSync-API
Search CPAN
http://search.cpan.org/dist/SugarSync-API
Thanks to Mark Willis for producing a non-functional php module.
Copyright 2011 Johan Vromans, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Unknown directive: =SEE
To install SugarSync::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SugarSync::API
CPAN shell
perl -MCPAN -e shell install SugarSync::API
For more information on module installation, please visit the detailed CPAN module installation guide.