Hi,
I have a PPR actor and want to access the user's payment status so I can prioritize their queries and set some limitations for non-paying users as well. My current actor implementation is in Node js. I understand that there is an endpoint
/users/me
but how do I get this info via my actor. Below is a skeletal implemention of the actor:
import { Actor } from 'apify';
import { PuppeteerCrawler } from 'crawlee';
import { router } from './routes.js';
await Actor.init();
const input = await Actor.getInput();
const startUrls = input?.startUrls || [{ url: 'https://apify.com' }];
const proxyConfiguration = await Actor.createProxyConfiguration();
const crawler = new PuppeteerCrawler({
proxyConfiguration,
requestHandler: router,
});
await crawler.run(startUrls);
await Actor.exit();
Thanks! π