disqus-php icon indicating copy to clipboard operation
disqus-php copied to clipboard

threads/details requirements needs tweaking

Open purdy opened this issue 13 years ago • 0 comments

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',
    ) );

purdy avatar Sep 20 '12 15:09 purdy