Skip to content

Commit

Permalink
Fixing the ListEnvelopesService.php example
Browse files Browse the repository at this point in the history
  • Loading branch information
InbarGazit committed Feb 22, 2024
1 parent ef51924 commit 4dc4377
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/Examples/eSignature/ListEnvelopesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ public static function listEnvelopes(array $args, $clientService): EnvelopesInfo
# See https://developers.docusign.com/esign-rest-api/reference/Envelopes/Envelopes/listStatusChanges
# The list status changes call requires at least a from_date OR
# a set of envelope_ids. Here we filter using a from_date.
# Here we set the from_date to filter envelopes for the last 10 days
# Here we set the from_date to filter envelopes for the last 30 days
# Use ISO 8601 date format

#ds-snippet-start:eSign3step2
$envelope_api = $clientService->getEnvelopeApi();
$from_date = date("c", (time() - (10 * 24 * 60 * 60)));
$from_date = date("c", (time() - (30 * 24 * 60 * 60)));
$options = new ListStatusChangesOptions();
$options->setFromDate($from_date);
try {
Expand Down

0 comments on commit 4dc4377

Please sign in to comment.