Metered Paywall Settings on Accesstype dashboard (If you dont find it, reach out to support to toggle it on) and configure paywall for anonymous/logged-in readers based on your need.
The meter is shared for a reader while he is logged in and anonymous.
Note : If you are enabling metered paywall for anonymous as well as logged-in users, ensure story count for anonymous is greater than or equal to that for logged-in. And the duration is exactly the same.
Call isAssetAccessible method.
Call pingbackAssetAccess method for updating the meter everytime a metered asset is accessed. The response from isAssetAccessible in step 3 needs to passed for pingback call.
- See sample code snippets here
- You can refer to access and pingback endpoints for more details or in case you are doing direct API integration.