I'm trying to use the Disqus API to add a post to an existing discussion/forum. In the documentation I can read that I can send a comment without authentication, as a guest. The documentation says this: http://disqus.com/api/docs/posts/create/
Anonymous comments are allowed under two conditions:
- You're using legacy auth, and your secret key
- You're using your public key, you've come from a verified referrer, you're unauthenticated, and the forum you're attempting to create the post on is listed in the applications trusted forums.
To create an anonymous comment, simply pass author_email and author_name, and optionally the author_url parameter.
So I use this code to create a comment in PHP. (I use a very simple cURL class but the problem isn't there because I get the same one in the console on disqus.com/api)
$curl = new Curl(1);
$curl->addPostVar('thread','THREAD_ID');
$curl->addPostVar('message','Text message');
$curl->addPostVar('author_email','My email');
$curl->addPostVar('author_name','My name');
$curl->addPostVar('api_secret','My application secret API key');
echo $curl->exec('https://disqus.com/api/3.0/posts/create.json');
But I get the error through JSON
{"code": 4, "response": "You must be authenticated to perform this action"}
I know someone else has already asked this (Disqus API create post error) but the response suggested was to use OAuth and get authenticated. But I don't want to authenticate, I want to send a guest comment with name and email. Where I'm wrong?
Thank you very much for any replies.
