我想在网页上显示当前用户的Disqus用户名 - 有没有办法通过JavaScript将其从小部件中删除?
如果没有,是否有服务器方式这样做?
答案 0 :(得分:0)
看看http://disqus.com/api/docs/users/details/
您需要注册您的网站。
简单的get请求的响应就像这样
"code": 0,
"response": {
"username": "disqus_api",
"about": "",
"name": "disqus_api",
"url": "",
"isFollowing": false,
"isFollowedBy": false,
"profileUrl": "http://disqus.com/disqus_api/",
"emailHash": "67f79ed8e10b74abf07a8dfe101bbab2",
"avatar": {
"permalink": "http://disqus.com/api/users/avatars/disqus_api.jpg",
"cache": "http://mediacdn.disqus.com/1091/images/noavatar92.png"
},
"id": "1",
"isAnonymous": false,
"email": "example@disqus.com"
}
}