PHPAPI reference
Events
Events in the PHP SDK.
// access
$nexus->events()Events
classclass Inverge\Nexus\Resource\EventsProduct analytics — capture events, optionally correlated to a person/session.
View source__construct
constructorfunction __construct(Inverge\Nexus\NexusClient $client)Parameters
Prop
Type
capture()
methodfunction capture(string $name, array $properties = [], array $context = []): intCapture a single event.
Parameters
Prop
Type
Returns int — number of events written
batch()
methodfunction batch(array $events, array $context = []): intCapture a batch of events sharing one identity/context. Each event:
['name' => string, 'properties' => array, 'timestamp' => string].
Parameters
Prop
Type
Returns int
