InvergeDocs
PHPAPI reference

Sessions

Sessions in the PHP SDK.

// access
$nexus->sessions()

Sessions

class
class Inverge\Nexus\Resource\Sessions

The sessions spine — identify end-users and start/refresh journey sessions that other products (events, errors, logs) correlate into.

View source

__construct

constructor
function __construct(Inverge\Nexus\NexusClient $client)

Parameters

Prop

Type

View source

identify()

method
function identify(string $distinctId, array $options = []): array

Identify (upsert) an end-user.

Parameters

Prop

Type

Returns array<mixed>

View source

track()

method
function track(array $options = []): array

Start/refresh the active session and get its sessionId.

Parameters

Prop

Type

Returns array<mixed>

View source

On this page