GetStreamOptions
in package
GetStreamOptions Class Doc Comment
Tags
Table of Contents
- $cursor : string|null
- $cursor Specifies a pointer into the dataset where your query will begin. You can either provide an ISO DateTime or a string cursor (from the `endCursor` value in the response). If no value is provided, the query begins from seven days ago. For example, to fetch event data beginning from January 1, 2022, set this value to `2022-01-01T00:00:00Z`. The response will include data about events starting from that date in chronological order. The response also includes an `endCursor` property. To fetch the next page of event data, call this endpoint again with `cursor` set to the previous `endCursor` value.
- $limit : int|null
- $limit The maximum number of records to return. The default value is 1000.
- getCursor() : string|null
- Gets cursor
- getLimit() : int|null
- Gets limit
- setCursor() : self
- Sets cursor
- setLimit() : self
- Sets limit
Properties
$cursor
$cursor Specifies a pointer into the dataset where your query will begin. You can either provide an ISO DateTime or a string cursor (from the `endCursor` value in the response). If no value is provided, the query begins from seven days ago. For example, to fetch event data beginning from January 1, 2022, set this value to `2022-01-01T00:00:00Z`. The response will include data about events starting from that date in chronological order. The response also includes an `endCursor` property. To fetch the next page of event data, call this endpoint again with `cursor` set to the previous `endCursor` value.
protected
string|null
$cursor
= null
$limit
$limit The maximum number of records to return. The default value is 1000.
protected
int|null
$limit
= null
Methods
getCursor()
Gets cursor
public
getCursor() : string|null
Return values
string|null —getLimit()
Gets limit
public
getLimit() : int|null
Return values
int|null —setCursor()
Sets cursor
public
setCursor(string|null $cursor) : self
Parameters
- $cursor : string|null
-
Specifies a pointer into the dataset where your query will begin. You can either provide an ISO DateTime or a string cursor (from the
endCursorvalue in the response). If no value is provided, the query begins from seven days ago. For example, to fetch event data beginning from January 1, 2022, set this value to2022-01-01T00:00:00Z. The response will include data about events starting from that date in chronological order. The response also includes anendCursorproperty. To fetch the next page of event data, call this endpoint again withcursorset to the previousendCursorvalue.
Return values
self —setLimit()
Sets limit
public
setLimit(int|null $limit) : self
Parameters
- $limit : int|null
-
The maximum number of records to return. The default value is 1000.