问题标签 [trustpilot]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - 使用 JavaScript (jQuery) 插入时无法显示 TrustPilot HTML
如果我直接在 HTML 页面上添加了 TrustPilot html 代码,它可以正常工作,但我需要使用 jQuery 插入它。插入时我看到了 HTML 代码,但没有显示。
让元素正确显示的唯一方法是直接插入到没有javascript的HTML中吗?
google-rich-snippets - 评论富网页摘要是在公司级别还是域级别?
例如,我们有多个域;example.nl、example.de、example.fi、example.com.br。例如.es等。
如果我们为公司创建一个 trustpilot 页面并获得足够的评论,我们是否能够在所有域上使用评论片段?
javascript - 使用不同的企业 ID 时,信任试点轮播不起作用
在代码笔上有一些更改所需的代码我正在尝试放置不同的业务 ID
代码笔: https ://codepen.io/edcastano/pen/AXYJEY
这个58a3003b0000ff00059cab80
目前我有这个
53da56ff0000640005792dae
我似乎无法确定问题所在。我对 JavaScript 很陌生。我尝试使用开发人员工具,但无法看到问题
api - Trustpilot 授权类型:授权码未发送,而是 html 响应即将到来
我已经在 trustpilot 中设置了我的应用程序,因为我想使用它的 API。我有 API 密钥和秘密。到目前为止,一切都很好。但是当我使用它通过邮递员获取授权码时,我得到的是 HTML 响应而不是密钥。我正在关注此处给出的授权代码流程:https ://developers.trustpilot.com/authentication
我在邮递员中使用此 URL 进行 GET 请求:https ://authenticate.trustpilot.com?client_id=APIKEY&redirect_uri=xxxxx&response_type=code
redirect_uri 是我放在应用程序中的那个。它确实有https。所以它就像https://myCompany.com.au
问题:如何获取授权码?
更新:最后我使用了密码流,它给了我一个 359999 秒的访问令牌。现在,每当我想获得评论时,我首先通过 GET 请求进行身份验证,并每次都获取新的访问令牌。
api - 如何通过 Trustpilot API 发送 Trustpilot 邀请?
在我们的应用程序中,我们使用此 API 调用来检索我们的平均评分并将其显示在我们的网站上:
这很好用。
现在,如果我们想向我们的一位客户发送对我们的服务进行评分的邀请,我们会使用非常相似的 API 调用:
不幸的是,这不起作用。我们收到此错误:
我们在这里缺少什么?
我们不明白为什么我们的 API 密钥对第一次调用有效,而对第二次调用无效。
谢谢你的帮助。
javascript - Next.js 中的 Trustpilot 信任框
我正在尝试将 Trustpilot TrustBox 添加到 Next.js 应用程序。
我的 componentDidMount 中有这个:
这在我的脑海中:
这在我的html中:
这在热重载时工作正常。例如,如果我在服务器运行时添加代码。但是重新加载它会中断,我收到以下错误:
无法读取未定义的属性“loadFromElement”
有任何想法吗?
trustpilot - 使用 api 获取 Trustpilot 评论时出错
我打算使用以下 api 链接中记录的 trustilot api 获取评论: API:https://developers.trustpilot.com/business-units-api#business-unit-private-reviews
但是,我收到以下错误。
我在谷歌上找不到太多帮助。
我错过了什么?
trustpilot - Trustpilot 邀请 api 奇怪的结果
尝试使用他们的 API 创建邀请,我得到了正确的结果,但是状态是“未发送”。调试信息为零,所以我想知道是否有其他人看到过这个并且可能有解决问题的想法。
这是我从他们的 api 获得的响应示例:
trustpilot - 在开发环境中没有来自api的响应,但在生产环境中工作
当我尝试使用我的开发环境连接到 api 进行调试时,没有得到 api 的响应。
php - PHP - Scrape data of all trustpilot reviews
This code will get all 25 pages of reviews for example.com, what I then want to do is then put all the results into a JSON array or something.
I attempted the code below in order to maybe retrieve all of the names:
This is clearly a lot harder than I anticipated, does anyone know how I could possibly get all of the reviews into JSON or something for however many pages I choose, for example in this case I choose 25 pages worth of reviews.
Thanks!