Closed powli closed 6 years ago
The next release will allow the response to be used as session details. The C2SCommunicatorConfiguration
class will make sure that both the old session details structure (with clientSessionID
, customerId
, region
and environment
) and the create session response will work. Just make sure to:
clientSessionId
and clientSessionID
.assetUrl
and assetsBaseUrl
.clientApiUrl
and apiBaseUrl
.clientApiUrl
and assetUrl
or provide the region
and environment
(the region will be ignored if the URLs are provided).Fixed in release 3.8.0.
When I create a session through the PHP Server SDK I get a response similar to this:
However this can not directly be used to create a JavaScript SDK Session, since it expects the following properties (see here):
Do I really have to manually map the session properties?
Also the
clientApiUrl
is not usable directly, since the tester expects the url to end withclient/v1
instead of justclient
, which is actually returned from thegetSession
endpoint.