View as Markdown
eTrusted icon

eTrusted ACTION

Get The Total Number Of Reviews Based On A Filter

Retrieves count of reviews for a specific channel. See the documentation
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's eTrusted account once, then configure and run Get The Total Number Of Reviews Based On A Filter from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "etrusted-get-total-reviews",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    etrusted: { authProvisionId: "apn_xxxxxxx" },
    channelId: ["Channel ID"],
    submittedAfter: "Submitted After",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Get The Total Number Of Reviews Based On A Filter inputs
Property Type Description
channelId Channel ID string[]
The ID of the channel to get reviews for
Optional Dynamic
submittedAfter Submitted After string
Submitted After is a timestamp in the ISO 8601 and RFC3339 compliant format yyyy-MM-dd'T'HH:mm:ss.SSSZ. Check the glossary for examples of valid datetime formats. The list of reviews will only contain reviews submitted with a later timestamp.
Optional
submittedBefore Submitted Before string
Submitted Before is a timestamp in the ISO 8601 and RFC3339 compliant format yyyy-MM-dd'T'HH:mm:ss.SSSZ. Check the glossary for examples of valid datetime formats. The list of reviews will only contain reviews submitted with an earlier timestamp.
Optional
rating Rating integer[]
A list of star ratings to be retrieved. If not set, all reviews are listed. Example: [1, 2, 5]
Optional
status Status string[]
A list of statuses to be retrieved. If not set, all reviews are listed.
Optional
type Type string[]
A list of review types to be retrieved. If not set, all reviews are listed.
Optional
hasReply Has Reply boolean
Reduces the list of reviews to only match reviews that either have been replied to or not. If not set, all reviews are listed.
Optional
ignoreStatements Ignore Statements boolean
Filters the list to ignore statements.
Optional
query Query string
A full-text search query that is matched against the order reference and email properties.
Optional
sku SKU string
list of product's SKUs. Be aware, that this parameter does only make sense for product reviews.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
etrusted-get-total-reviews
Version
0.0.2
App
eTrusted
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes