To call the API functions, I’m using the Java-based REST Client – which is free and very handy for this kind of thing.
- Log in to Disqus.com with a user that has access to the forum you want API keys for.
- Visit
http://disqus.com/api/get_my_key/with your browser to get the user API key (since it uses the active session to give you the API key). - Call
http://disqus.com/api/get_forum_list/?user_api_key= _USER_API_KEY_to get the list of available forums, since you’ll need the numeric identifier for the forum. Look through the JSON response and find the id number for the forum you want an API key for (for my blog, it’s"id": "180233"). - Call
http://disqus.com/api/get_forum_api_key/?user_api_key =_USER_API_KEY_&forum_id=180233where 180233 is your forum id. The message field in the JSON response should contain your API key.
That’s quite a bit of manual work, but it does not seem like there’s currently any better method. If you happen to find one, please let me know.
本文详细介绍了如何登录Disqus网站获取API密钥的过程,并提供了通过REST客户端调用API函数的方法,包括获取可用论坛列表、指定论坛ID获取API密钥等步骤。
2209

被折叠的 条评论
为什么被折叠?



