Skip to content

Commit 4f59876

Browse files
author
Ankit Singh
authored
Merge pull request #43 from ostdotcom/tilo_webhook
Readme changes for get transaction extra parameters.
2 parents 46f300e + 3bf23f3 commit 4f59876

4 files changed

Lines changed: 14 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
[OST JAVA SDK v2.2.2](https://github.com/ostdotcom/ost-sdk-java/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 JAVA SDK v2.2.0](https://github.com/ostdotcom/ost-sdk-java/tree/v2.2.0)
28
---
39

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,10 @@ For executing transactions, you need to understand the 4 modules described below
566566
statusesArray.add("SUCCESS");
567567
statusesArray.add("FAILED");
568568

569+
// To get transactions between a specific time interval, add start timestamp and end timestamp.
570+
long startTime = 1563260786;
571+
long endTime = 1563280786;
572+
569573
// Name of the transaction. Eg. "like", "download", etc.
570574
// NOTE: Max length 25 characters (Allowed characters: [A-Za-z0-9_/s])
571575
String transactionName = "like";
@@ -596,6 +600,8 @@ For executing transactions, you need to understand the 4 modules described below
596600

597601
HashMap <String,Object> params = new HashMap<String,Object>();
598602
params.put("user_id", userId);
603+
params.put("start_time", startTime);
604+
params.put("end_time", endTime);
599605
params.put("statuses", statusesArray);
600606
params.put("meta_properties", metaPropertyArrayJsonStr);
601607
params.put("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

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.ost</groupId>
55
<artifactId>ost-sdk-java</artifactId>
6-
<version>2.2.1-SNAPSHOT</version>
6+
<version>2.2.2-SNAPSHOT</version>
77
<name>OST SDK for Java</name>
88
<description>OST Platform SDK for Java</description>
99
<packaging>jar</packaging>

0 commit comments

Comments
 (0)