Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

threads/details requirements needs tweaking #16

Open
purdy opened this issue Sep 20, 2012 · 0 comments
Open

threads/details requirements needs tweaking #16

purdy opened this issue Sep 20, 2012 · 0 comments

Comments

@purdy
Copy link

purdy commented Sep 20, 2012

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',
    ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant