正确的方法来确定用户是否已使用Disqus API对线程/帖子投票?

正确的方法来确定用户是否已使用Disqus API对线程/帖子投票?

问题描述:

The Disqus API docs at https://disqus.com/api/docs/posts/vote/ and https://disqus.com/api/docs/threads/vote/ show some examples on registering votes for Posts and Threads, respectively.

These are the only documented API calls related to voting, and from the docs the calls are to be used to:

Register a vote on a post.

and

Register a vote on a thread.

So what API call should be used to determine if a user has already voted, and what their vote was? Is it up to the application developer utilizing the API to keep track of this?

Disqus API文档位于 https://disqus.com/api/docs/posts/vote/ https://disqus.com/api/docs/threads/vote/ 分别显示了有关为帖子和主题注册投票的一些示例。 p> 这些是与投票相关的唯一记录的API调用,以及调用将用于的文档: p>

在帖子上注册投票。 p> blockquote>

和 p>

在线程上注册投票。 p> blockquote> \ n

那么应该使用什么API调用来确定用户是否已经投票,以及他们的投票是什么? 是由应用程序开发人员使用API​​来跟踪这个吗? p> div>

If you authenticate your API requests with an access token, any requests that include a post or thread will have a property called userScore.

On posts, this can be -1, 0 or 1, which follows the same voting pattern in the posts/vote API.

A thread won't have downvotes of course, so it'll be limited to 0 or 1