const { result, error } = await unprice.analytics.getVerifications({ projectId: "project_1234567890", range: "24h", customerId: "cus_1234567890" // optional});if (error) { // handle potential network or bad request error // a link to our docs will be in the `error.docs` field console.error(error.message); return;}console.log(result);
Get verification analytics for a project or customer
Copy
const { result, error } = await unprice.analytics.getVerifications({ projectId: "project_1234567890", range: "24h", customerId: "cus_1234567890" // optional});if (error) { // handle potential network or bad request error // a link to our docs will be in the `error.docs` field console.error(error.message); return;}console.log(result);
const { result, error } = await unprice.analytics.getVerifications({ projectId: "project_1234567890", range: "24h", customerId: "cus_1234567890" // optional});if (error) { // handle potential network or bad request error // a link to our docs will be in the `error.docs` field console.error(error.message); return;}console.log(result);