disqus-php
disqus-php copied to clipboard
threads/details requirements needs tweaking
In interfaces.json (~line 515), the 'thread' parameter is required for threads/details, but in the documentation, you can also provide thread:link or thread:ident if you don't know the thread ID. But if you try:
$thread = $disqus->threads->details( array(
'forum' => 'myforum-temp',
'thread:link' => $thread_data['link'],
) );
This throws an exception: Exception: Missing required argument: thread in DisqusResource->__call() (line 82 of /path/to/disqus-php/disqusapi/disqusapi.php).
You can workaround this by providing a dummy ID, which seems to work:
$thread = $disqus->threads->details( array(
'forum' => 'myforum-temp',
'thread:link' => $thread_data['link'],
'thread' => '123',
) );