SocalNick / orchestrate-php-client

A PHP client for Orchestrate.io
BSD 3-Clause "New" or "Revised" License
32 stars 5 forks source link

List events from one date to another #22

Open ghost opened 8 years ago

ghost commented 8 years ago

I'm a little confused with the List with range queries option. I didn't quite understand the description and what the variables did.

Specifically the $afterEvent and $beforeEvent in:

use SocalNick\Orchestrate\EventListOperation;
$evListOp = new EventListOperation("films", "pulp_fiction", "comment", 20, $startEvent, $afterEvent, $beforeEvent, $endEvent);
$evListObject = $client->execute($evListOp);

From the orchestrate documentation, there is this which just has a startEvent and endEvent:

curl -i "https://api.orchestrate.io/v0/users/kates-user-id/events/timeline?startEvent=1384534722568&endEvent=1403206439244" \
-u '12345678-1234-1234-1234-123456789012:'

Is there a way to use these parameters?