Hi:
I’m trying to use the example exposed on the documentation:
const sdk = require('api')('@revenuecat/v4.0#1yz2c0m2sl5v5md8q');
sdk.auth('Bearer REVENUECAT_API_KEY');
sdk.grantAPromotionalEntitlement({duration: 'weekly'}, {
app_user_id: 'app_user_id',
entitlement_identifier: 'entitlement_identifier'
}).then(res => console.log(res))
.catch(err => console.error(err));
UnhandledPromiseRejectionWarning: Error: Sorry, `grantAPromotionalEntitlement` does not appear to be a valid operation on this API.
at Proxy.<anonymous> (/path/to/index.js)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
But I can’t do it.
Please, someone that could give me a way to keep going.