Difference between revisions of "ATC/Current/SDK/api.session.getData"
From Genesys Documentation
DannaShirley (talk | contribs) (Published) |
DannaShirley (talk | contribs) (Published) |
||
Line 3: | Line 3: | ||
|DisplayName=api.session.getData | |DisplayName=api.session.getData | ||
|TocName=api.session.getData | |TocName=api.session.getData | ||
− | |Context=api.session | + | |Context=Learn how to obtain the data such as the short ID for a particular customer's session. |
+ | |Dimension=api.session | ||
|ComingSoon=No | |ComingSoon=No | ||
|Platform=PureEngage, PureConnect, PureCloud | |Platform=PureEngage, PureConnect, PureCloud |
Revision as of 10:11, June 10, 2020
This topic is part of the manual Journey JavaScript SDK for version Current of Genesys Predictive Engagement.
Contents
Learn how to obtain the data such as the short ID for a particular customer's session.
Description
api.session.getData returns an object that contains session information.
Signature
ac('api.session.getData', (err, sessionInfo) => {
if (err) {
// handle error
return;
}
return sessionInfo;
});
Example
The following is an example of an object that is returned by api.session.getData:
{
id: <uuid>
shortId: 12345
customerCookieId: <uuid>
}
Callback
The callback takes err as the first parameter.
Comments or questions about this documentation? Contact us for support!