WebService-Dropbox

 view release on metacpan or  search on metacpan

lib/WebService/Dropbox.pm  view on Meta::CPAN

    my $result = $dropbox->create_shared_link_with_settings($path, $settings);

L<https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings>

=head3 list_shared_links($path)

List shared links of this user.
If no path is given, returns a list of all shared links for the current user. For members of business teams using team space and member folders, returns all shared links in the team member's home folder unless the team space ID is specified in the re...
If a non-empty path is given, returns a list of all shared links that allow access to the given path - direct links to the given path and links to parent folders of the given path. Links to parent folders can be suppressed by setting direct_only to t...

    my $result = $dropbox->list_shared_links($path);

L<https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links>

=head3 modify_shared_link_settings($path, $settings, $remove_expiration)

Modify the shared link's settings.
If the requested visibility conflict with the shared links policy of the team or the shared folder (in case the linked file is part of a shared folder) then the LinkPermissions.resolved_visibility of the returned SharedLinkMetadata will reflect the a...

    my $result = $dropbox->modify_shared_link_settings($path, $settings, $remove_expiration);

L<https://www.dropbox.com/developers/documentation/http/documentation#sharing-modify_shared_link_settings>

=head3 revoke_shared_link($url)

Revoke a shared link.
Note that even after revoking a shared link to a file, the file may be accessible if there are shared links leading to any of the file parent folders. To list all shared links that enable access to a specific file, you can use the list_shared_links w...

    my $result = $dropbox->revoke_shared_link($url);

L<https://www.dropbox.com/developers/documentation/http/documentation#sharing-revoke_shared_link>

=head2 Error Handling and Debug

=head3 error : str

    my $result = $dropbox->$some_api;
    unless ($result) {
        die $dropbox->error;
    }

=head3 req : HTTP::Request or Furl::Request

    my $result = $dropbox->$some_api;

    warn $dropbox->req->as_string;

=head3 res : HTTP::Response or Furl::Response

    my $result = $dropbox->$some_api;

    warn $dropbox->res->code;
    warn $dropbox->res->header('ETag');
    warn $dropbox->res->header('Content-Type');
    warn $dropbox->res->header('Content-Length');
    warn $dropbox->res->header('X-Dropbox-Request-Id');
    warn $dropbox->res->as_string;

=head3 env_proxy

enable HTTP_PROXY, NO_PROXY

    my $dropbox = WebService::Dropbox->new();

    $dropbox->env_proxy;

=head3 debug

enable or disable debug mode

    my $dropbox = WebService::Dropbox->new();

    $dropbox->debug; # disabled
    $dropbox->debug(0); # disabled
    $dropbox->debug(1); # enabled

=head3 verbose

more warnings.

    my $dropbox = WebService::Dropbox->new();

    $dropbox->verbose; # disabled
    $dropbox->verbose(0); # disabled
    $dropbox->verbose(1); # enabled

=head1 AUTHOR

Shinichiro Aska

=head1 SEE ALSO

=over 4

=item L<https://www.dropbox.com/developers/documentation/http/documentation>

=item L<https://www.dropbox.com/developers/reference/migration-guide>

=back

=head1 LICENSE

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.

=cut



( run in 1.096 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )