line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Dropbox::Files::CopyReference; |
2
|
10
|
|
|
10
|
|
68
|
use strict; |
|
10
|
|
|
|
|
23
|
|
|
10
|
|
|
|
|
292
|
|
3
|
10
|
|
|
10
|
|
155
|
use warnings; |
|
10
|
|
|
|
|
22
|
|
|
10
|
|
|
|
|
277
|
|
4
|
10
|
|
|
10
|
|
51
|
use parent qw(Exporter); |
|
10
|
|
|
|
|
18
|
|
|
10
|
|
|
|
|
52
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our @EXPORT = do { |
7
|
10
|
|
|
10
|
|
630
|
no strict 'refs'; |
|
10
|
|
|
|
|
33
|
|
|
10
|
|
|
|
|
2098
|
|
8
|
|
|
|
|
|
|
grep { $_ !~ qr{ \A [A-Z]+ \z }xms } keys %{ __PACKAGE__ . '::' }; |
9
|
|
|
|
|
|
|
}; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# https://www.dropbox.com/developers/documentation/http/documentation#files-copy_reference-get |
12
|
|
|
|
|
|
|
sub copy_reference_get { |
13
|
0
|
|
|
0
|
0
|
|
my ($self, $path) = @_; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
my $params = { |
16
|
|
|
|
|
|
|
path => $path, |
17
|
|
|
|
|
|
|
}; |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
$self->api({ |
20
|
|
|
|
|
|
|
url => 'https://api.dropboxapi.com/2/files/copy_reference/get', |
21
|
|
|
|
|
|
|
params => $params, |
22
|
|
|
|
|
|
|
}); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
# https://www.dropbox.com/developers/documentation/http/documentation#files-copy_reference-save |
26
|
|
|
|
|
|
|
sub copy_reference_save { |
27
|
0
|
|
|
0
|
0
|
|
my ($self, $copy_reference, $path) = @_; |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
my $params = { |
30
|
|
|
|
|
|
|
copy_reference => $copy_reference, |
31
|
|
|
|
|
|
|
path => $path, |
32
|
|
|
|
|
|
|
}; |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
|
|
|
$self->api({ |
35
|
|
|
|
|
|
|
url => 'https://api.dropboxapi.com/2/files/copy_reference/save', |
36
|
|
|
|
|
|
|
params => $params, |
37
|
|
|
|
|
|
|
}); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |