Firefox-Sync-Client
view release on metacpan or search on metacpan
lib/Firefox/Sync/Client.pm view on Meta::CPAN
use MIME::Base64;
use Digest::SHA qw( sha1 hmac_sha256 );
use Crypt::Rijndael;
use JSON;
use LWP::UserAgent;
use Storable;
our $VERSION = '0.04';
our @ISA = qw(Exporter);
our @EXPORT = qw(new get_raw_collection get_addons get_bookmarks get_clients get_forms get_history get_meta get_passwords get_prefs get_tabs);
=over
=item new(%config)
Constructor. You can set the following parameters during construction:
ProtocolVersion - defaults to 1.1
URL - The server address
User - The username or e-mail address
lib/Firefox/Sync/Client.pm view on Meta::CPAN
return $self;
}
=item get_raw_collection($collection)
Returns an array reference containing all elements of the given collection.
The following collections are tested (but other collections may also work):
bookmarks
prefs
clients
forms
history
passwords
tabs
addons
You can not fetch the metadata with this method, please use get_meta() instead.
Also, if you plan to do something with the 'bookmarks' collection, better use
get_bookmarks(), as it returns a somewhat nicer formatted array reference.
lib/Firefox/Sync/Client.pm view on Meta::CPAN
Returns all synchronized passwords. The passwords are returned
unencrypted.
=cut
sub get_passwords {
my $self = shift;
return get_raw_collection($self, 'passwords');
}
=item get_prefs()
Returns the synchronized browser preferences.
=cut
sub get_prefs {
my $self = shift;
return get_raw_collection($self, 'prefs');
}
=item get_tabs()
Returns an array of tabs opened on each Sync client / Browser.
=cut
sub get_tabs {
my $self = shift;
( run in 0.808 second using v1.01-cache-2.11-cpan-0bb4e1dffa6 )