The mag+ Subscription API Lint Test allows you to test your endpoints when implementing a custom entitlements solution.
Important Information
- Before using this feature, or to learn more about it, read the article "mag+ Subscription API - Adding Custom Access Control and Entitlements to Apps."
- To learn more about the available settings in the mag+ Publish portal, read the article "mag+ Subscription API - Settings Available in the mag+ Publish Portal."
How to Access the mag+ Subscription API Lint Test
1. Login to the mag+ Publish portal at .
2. Click on the tab labeled "Admin".
5. You will be directed to the Lint Test page where you can enter the necessary values for testing.
Possible Error Messages
Note: Error messages returned by the Lint Test are only triggered by improper HTTP 200/201 responses. Responses from the API must be in JSON format, and a successful API call must always return a 2xx HTTP response code. A response code other than 200/201 will be interpreted as a failure. In a 200/201 response you should not include any error messages.
Error: "Doesn’t have an array of entitlements."
Solution: You should always return a JSON array called entitlements. If the user has no entitlements then the list should be empty, not missing. If the API call is not successful, do not return a 200/201 response.
Error: "Doesn’t have a status of OK."
Solution: You have forgotten to include {"status":"OK"} in your response. If the API call is not successful, do not return a 200/201 response.
0 Comments