| 1 | package Document::eSign::Docusign::getListOfEnvelopesInFolders; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use Data::Dumper; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | =head1 NAME | ||||||||||
| 8 | |||||||||||
| 9 | Document::eSign::Docusign::getListOfEnvelopesInFolders - This returns a list of envelopes | ||||||||||
| 10 | that match the criteria specified in the query. Use to search for completed envelopes etc. | ||||||||||
| 11 | |||||||||||
| 12 | =head1 VERSION | ||||||||||
| 13 | |||||||||||
| 14 | Version 0.04 | ||||||||||
| 15 | |||||||||||
| 16 | =cut | ||||||||||
| 17 | |||||||||||
| 18 | =head1 functions | ||||||||||
| 19 | |||||||||||
| 20 | =head2 getListOfEnvelopesInFolders($parent, $vars) | ||||||||||
| 21 | |||||||||||
| 22 | my $response = $ds->getListOfEnvelopesInFolders( | ||||||||||
| 23 | { | ||||||||||
| 24 | accountId => $ds->accountid, # Required | ||||||||||
| 25 | search_folder => 'completed', # Required | ||||||||||
| 26 | }, | ||||||||||
| 27 | { | ||||||||||
| 28 | start_position => {integer}, | ||||||||||
| 29 | count => {integer} | ||||||||||
| 30 | from_date => {date/time}, | ||||||||||
| 31 | to_date => {date/time}, | ||||||||||
| 32 | order_by => {string}, | ||||||||||
| 33 | order => {string}, | ||||||||||
| 34 | include_recipients => {true/false}, all | ||||||||||
| 35 | } | ||||||||||
| 36 | ); | ||||||||||
| 37 | |||||||||||
| 38 | print "Got envelopes: " . Dumper $response . "\n"; | ||||||||||
| 39 | |||||||||||
| 40 | Full options: | ||||||||||
| 41 | |||||||||||
| 42 | https://www.docusign.com/p/RESTAPIGuide/RESTAPIGuide.htm#REST%20API%20References/Get%20List%20of%20Envelopes%20in%20Folders.htm%3FTocPath%3DREST%2520API%2520References%7C_____111 | ||||||||||
| 43 | |||||||||||
| 44 | =cut | ||||||||||
| 45 | |||||||||||
| 46 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 47 | 0 | ▶ | carp( "Got get List Of Envelopes In Folders request: " . Dumper(@_) ) if $_[1]->debug; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 48 | 0 | my $class = shift; | |||||||||
| 49 | 0 | my $main = shift; | |||||||||
| 50 | 0 | my $vars = shift; | |||||||||
| 51 | 0 | my $query_params = shift; | |||||||||
| 52 | |||||||||||
| 53 | 0 | my $self = bless {}, $class; | |||||||||
| 54 | |||||||||||
| 55 | 0 | my $uri = q{/search_folders/} . $vars->{search_folder}; | |||||||||
| 56 | |||||||||||
| 57 | 0 | my $creds = $main->buildCredentials(); | |||||||||
| 58 | |||||||||||
| 59 | 0 | my $response = | |||||||||
| 60 | $main->sendRequest( 'GET', undef, $creds, $main->baseUrl . $uri, $vars, $query_params ); | ||||||||||
| 61 | |||||||||||
| 62 | 0 | return $response; | |||||||||
| 63 | } | ||||||||||
| 64 | |||||||||||
| 65 | 1 | 1; | |||||||||