Hope this could be of help. Thanks
This helped us a lot, especially the use of the Postman to test each call:
Bootcamp: DPS - Direct Entitlement API explained | Learn Digital Publishing Suite: Enterprise Edition | Adobe TV
And we modified the 2nd code (from the 3 available below) to implement entitlement for Drupal's users database:
1. Direct entitlement starter kit (Updated) | Adobe Developer Connection
2. Your Direct Entitlement Service | Adobe Developer Connection
3. How to install the DPS Entitlement Server | Adobe Developer Connection
Also the verifyEntitlement call is no longer in use in v2, so you can omit it.
And we assigned product IDs in the code as simple as the static list:
| $productIds = array("net.healthplexus.jccc.0506", "net.healthplexus.jccc.0505", "net.healthplexus.jccc.0504", "net.healthplexus.jccc.0503", "net.healthplexus.jccc.0502", "net.healthplexus.jccc.0501"); |
I can attach our stripped down implementation (with removed integrator and application classes and verifyEntitlement call) and Postman collection export if anyone is interested, please let me know.