Friday, 20 January 2017

Retrieving Adobe Experience Manager ContextHub information using the ContextHub API

Adobe Experience Manager exposes a Java API named the ContextHub API that lets you programmatically obtain information about the Experience Manager ContextHub. The Experience Manager ContextHub contains data that displays information about users, known as context data. For more information about the Experience Manager ContextHub, including ContextHub stores, see Adding ContextHub to Pages and Accessing Stores.

For example, you can create a custom Experience Manager service that logs information about the ContextHub, as shown below.

9.01.2017 12:43:38.886 *INFO* [OsgiInstallerImpl] Size of stores list :14
19.01.2017 12:43:38.886 *INFO* [OsgiInstallerImpl] ---------Store----------
19.01.2017 12:43:38.886 *INFO* [OsgiInstallerImpl] contexthub.geolocation
19.01.2017 12:43:38.886 *INFO* [OsgiInstallerImpl] contexthub.surferinfo
19.01.2017 12:43:38.886 *INFO* [OsgiInstallerImpl] granite.profile
19.01.2017 12:43:38.887 *INFO* [OsgiInstallerImpl] granite.emulators
19.01.2017 12:43:38.887 *INFO* [OsgiInstallerImpl] aem.analyticsdata
19.01.2017 12:43:38.887 *INFO* [OsgiInstallerImpl] aem.pagedata
19.01.2017 12:43:38.887 *INFO* [OsgiInstallerImpl] aem.segmentation

To read this development article, click Retrieving Adobe Experience Manager ContextHub information using the ContextHub API.

Adobe Digital Marketing Community

Join the Adobe Digital Marketing Community. Start by clicking this banner

I (Scott Macdonald) am a Senior Digital Marketing Community Manager at Adobe Systems with over 18 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If  you would like to see more CQ or other Adobe Digital Marketing end to end articles like this, then leave a comment and let me know what content you would like to see.

TwitterFollow the Digital Marketing Customer Care team on Twitter @AdobeMktgCare.

TwitterFollow me on Twitter @smac2020  

No comments:

Post a Comment