import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.reviews.list({});
console.log(result);
}
run();{
"object": "list",
"data": [
{
"id": "<string>",
"object": "<string>",
"rating": 123,
"customer_name": "<string>",
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"customer_image_url": "<string>"
}
],
"has_more": true,
"url": "<string>"
}Returns reviews for products in the current account
import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.reviews.list({});
console.log(result);
}
run();{
"object": "list",
"data": [
{
"id": "<string>",
"object": "<string>",
"rating": 123,
"customer_name": "<string>",
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"customer_image_url": "<string>"
}
],
"has_more": true,
"url": "<string>"
}API key in the format: Bearer {api_token}
Filter by product ID
Cursor for pagination — the ID of the last item in the previous page
Items per page
1 <= x <= 100Was this page helpful?