【问题标题】:Number of comments posted by a user in disqus用户在 disqus 中发表的评论数
【发布时间】:2015-08-06 06:41:09
【问题描述】:

有什么方法可以获取用户在disqus API中发布的cmet数量。

我查看了他们的 Public/API 数据,发现 User 中有一个名为 numPosts 的字段。

但无法为使用 disqus SSO 在我的网站上注册的用户检索它。

【问题讨论】:

    标签: disqus


    【解决方案1】:

    可以通过调用:"https://disqus.com/api/3.0/users/details.json" url 来检索它

    响应包含字段 numPosts

    var disqusPublicKey = "<yourkey>";
    var disqusShortname = "<shortname>";
        $.ajax({
            type: 'GET',
            url: 'https://disqus.com/api/3.0/users/details.json',
            data: { api_key: disqusPublicKey, user:"<userid>"},
            cache: false,
            dataType: 'jsonp',
            success: function(response) {
                console.log(response);
            }
        });
    

    更多详情请参考:https://disqus.com/api/docs/users/details/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-12-12
      • 1970-01-01
      • 2013-08-07
      • 2015-10-11
      • 1970-01-01
      • 2011-08-16
      • 1970-01-01
      相关资源
      最近更新 更多