Expand my Community achievements bar.

Can we use Contexthub API in a helper class to manipulate data (AEM 6.1)

Avatar

Former Community Member

Can we use the "com.adobe.granite.contexthub.api" in ur java classes (sling models) to retrieve the data in a ClientContext, and also add data to it through the API (if possible)?

https://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/org/apache/sling/api/class-use/SlingHttpS...

If yes, how do i include that in my POM (Maven)

I tried this.. but the repository is not present:

<dependency>     <version>0.0.36</version>     <artifactId>com.adobe.granite.contexthub.api</artifactId>     <groupId>com.adobe.granite</groupId>     <type>bundle</type> </dependency>
0 Replies