| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package WebService::Dropbox::Users; | 
| 2 | 8 |  |  | 8 |  | 47 | use strict; | 
|  | 8 |  |  |  |  | 20 |  | 
|  | 8 |  |  |  |  | 194 |  | 
| 3 | 8 |  |  | 8 |  | 37 | use warnings; | 
|  | 8 |  |  |  |  | 15 |  | 
|  | 8 |  |  |  |  | 208 |  | 
| 4 | 8 |  |  | 8 |  | 38 | use parent qw(Exporter); | 
|  | 8 |  |  |  |  | 17 |  | 
|  | 8 |  |  |  |  | 39 |  | 
| 5 |  |  |  |  |  |  |  | 
| 6 |  |  |  |  |  |  | our @EXPORT = do { | 
| 7 | 8 |  |  | 8 |  | 467 | no strict 'refs'; | 
|  | 8 |  |  |  |  | 17 |  | 
|  | 8 |  |  |  |  | 1590 |  | 
| 8 |  |  |  |  |  |  | grep { $_ !~ qr{ \A [A-Z]+ \z }xms } keys %{ __PACKAGE__ . '::' }; | 
| 9 |  |  |  |  |  |  | }; | 
| 10 |  |  |  |  |  |  |  | 
| 11 |  |  |  |  |  |  | # https://www.dropbox.com/developers/documentation/http/documentation#users-get_account | 
| 12 |  |  |  |  |  |  | sub get_account { | 
| 13 | 0 |  |  | 0 | 0 |  | my ($self, $account_id) = @_; | 
| 14 |  |  |  |  |  |  |  | 
| 15 | 0 |  |  |  |  |  | $self->api({ | 
| 16 |  |  |  |  |  |  | url => 'https://api.dropboxapi.com/2/users/get_account', | 
| 17 |  |  |  |  |  |  | params => { | 
| 18 |  |  |  |  |  |  | account_id => $account_id, | 
| 19 |  |  |  |  |  |  | }, | 
| 20 |  |  |  |  |  |  | }); | 
| 21 |  |  |  |  |  |  | } | 
| 22 |  |  |  |  |  |  |  | 
| 23 |  |  |  |  |  |  | # https://www.dropbox.com/developers/documentation/http/documentation#users-get_account_batch | 
| 24 |  |  |  |  |  |  | sub get_account_batch { | 
| 25 | 0 |  |  | 0 | 0 |  | my ($self, $account_ids) = @_; | 
| 26 |  |  |  |  |  |  |  | 
| 27 | 0 |  |  |  |  |  | $self->api({ | 
| 28 |  |  |  |  |  |  | url => 'https://api.dropboxapi.com/2/users/get_account_batch', | 
| 29 |  |  |  |  |  |  | params => { | 
| 30 |  |  |  |  |  |  | account_ids => $account_ids, | 
| 31 |  |  |  |  |  |  | }, | 
| 32 |  |  |  |  |  |  | }); | 
| 33 |  |  |  |  |  |  | } | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | # https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account | 
| 36 |  |  |  |  |  |  | sub get_current_account { | 
| 37 | 0 |  |  | 0 | 0 |  | my ($self) = @_; | 
| 38 |  |  |  |  |  |  |  | 
| 39 | 0 |  |  |  |  |  | $self->api({ | 
| 40 |  |  |  |  |  |  | url => 'https://api.dropboxapi.com/2/users/get_current_account', | 
| 41 |  |  |  |  |  |  | }); | 
| 42 |  |  |  |  |  |  | } | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | # https://www.dropbox.com/developers/documentation/http/documentation#users-get_space_usage | 
| 45 |  |  |  |  |  |  | sub get_space_usage { | 
| 46 | 0 |  |  | 0 | 0 |  | my ($self) = @_; | 
| 47 |  |  |  |  |  |  |  | 
| 48 | 0 |  |  |  |  |  | $self->api({ | 
| 49 |  |  |  |  |  |  | url => 'https://api.dropboxapi.com/2/users/get_space_usage', | 
| 50 |  |  |  |  |  |  | }); | 
| 51 |  |  |  |  |  |  | } | 
| 52 |  |  |  |  |  |  |  | 
| 53 |  |  |  |  |  |  | 1; |