Skip to content

Commit 3faea39

Browse files
Merge pull request #65 from ostdotcom/tilo_webhook
Readme changes for get transaction list extra parameters.
2 parents 273b143 + 7502078 commit 3faea39

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
[OST PHP SDK v2.2.2](https://github.com/ostdotcom/ost-sdk-php/tree/v2.2.2)
2+
---
3+
4+
* Readme changes for documenting new parameters in transactions module. These parameters can help to
5+
get data between specific time interval.
6+
17
[OST PHP SDK v2.2.0](https://github.com/ostdotcom/ost-sdk-php/tree/v2.2.0)
28
---
39

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,10 @@ For executing transactions, you need to understand the 4 modules described below
518518

519519
// Array of status values.
520520
$statusesArray = array('CREATED', 'SUBMITTED', 'SUCCESS', 'FAILED');
521+
522+
// To get transactions between a specific time interval, add start timestamp and end timestamp.
523+
$startTime = 1563260786;
524+
$endTime = 1563280786;
521525

522526
// Name of the transaction. Eg. 'like', 'download', etc.
523527
// NOTE: Max length 25 characters (Allowed characters: [A-Za-z0-9_/s])
@@ -546,6 +550,8 @@ For executing transactions, you need to understand the 4 modules described below
546550

547551
$getParams = array();
548552
$getParams['user_id'] = $userId;
553+
$getParams['start_time'] = $startTime;
554+
$getParams['end_time'] = $endTime;
549555
$getParams['statuses'] = $statusesArray;
550556
$getParams['meta_properties'] = $metaPropertiesArrayJsonStr;
551557
$getParams['limit'] = $limit;

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.2.1
1+
2.2.2

0 commit comments

Comments
 (0)