PHPAPI reference
Sessions
Sessions in the PHP SDK.
// access
$nexus->sessions()Sessions
classclass Inverge\Nexus\Resource\SessionsThe sessions spine — identify end-users and start/refresh journey sessions that other products (events, errors, logs) correlate into.
View source__construct
constructorfunction __construct(Inverge\Nexus\NexusClient $client)Parameters
Prop
Type
identify()
methodfunction identify(string $distinctId, array $options = []): arrayIdentify (upsert) an end-user.
Parameters
Prop
Type
Returns array<mixed>
track()
methodfunction track(array $options = []): arrayStart/refresh the active session and get its sessionId.
Parameters
Prop
Type
Returns array<mixed>
