phpDocumentor

HubSessionsApiClientInterface

Interface HubSessionApiClientInterface

Tags
category

System

subpackage

GambioHub

Table of Contents

startSession()  : string
Starts a session in the Gambio Hub.

Methods

startSession()

Starts a session in the Gambio Hub.

public startSession(AuthHash $authHash, string $shopUrl, LanguageCode $languageCode) : string

Provide an authorization hash that can be later used in the hub callbacks to determine where each session key belongs to. This method will additionally save the AuthHash value to the PHP session with the key 'gambio_hub_auth_hash'.

Parameters
$authHash : AuthHash

The authorization hash to be used for the session start.

$shopUrl : string

Shop url with trailing slash.

$languageCode : LanguageCode
Return values
string

Returns the new session key.

Search results