确定用户是否已经使用 Disqus API 对 Thread/Post 投票的正确方法?
Proper way to determine if a user has already voted on a Thread/Post using the Disqus API?
https://disqus.com/api/docs/posts/vote/ and https://disqus.com/api/docs/threads/vote/ 上的 Disqus API 文档分别显示了一些有关为帖子和主题注册投票的示例。
这些是唯一记录在案的 API 与投票相关的调用,根据文档,这些调用将用于:
Register a vote on a post.
和
Register a vote on a thread.
那么应该使用什么 API 调用来确定用户是否已经投票,以及他们的投票是什么?是否由使用 API 的应用程序开发人员来跟踪此信息?
如果您使用访问令牌验证您的 API 请求,任何包含 post
或 thread
的请求都会有一个名为 userScore
的 属性 .
在帖子中,这可以是 -1
、0
或 1
,这与 posts/vote
API 中的投票模式相同。
一个话题当然不会有反对票,所以它会被限制在 0
或 1
https://disqus.com/api/docs/posts/vote/ and https://disqus.com/api/docs/threads/vote/ 上的 Disqus API 文档分别显示了一些有关为帖子和主题注册投票的示例。
这些是唯一记录在案的 API 与投票相关的调用,根据文档,这些调用将用于:
Register a vote on a post.
和
Register a vote on a thread.
那么应该使用什么 API 调用来确定用户是否已经投票,以及他们的投票是什么?是否由使用 API 的应用程序开发人员来跟踪此信息?
如果您使用访问令牌验证您的 API 请求,任何包含 post
或 thread
的请求都会有一个名为 userScore
的 属性 .
在帖子中,这可以是 -1
、0
或 1
,这与 posts/vote
API 中的投票模式相同。
一个话题当然不会有反对票,所以它会被限制在 0
或 1