Show spam comments in API

Anton Litvinenko's Avatar

Anton Litvinenko

17 Jun, 2014 02:22 AM

Hello,

we are using API to access discussion information and it looks like API doesn't return any comments nor discussion body in some cases.
In particular case discussion was marked as spam: "This discussion has been marked as spam.", but on UI we're still able to see the discussion body. Trying to load same discussion over API yields a JSON object with bunch of fields, but no 'comments' field.

How should we get discussion body and comments in such cases?

Thanks!

  1. Support Staff 1 Posted by Courtenay on 17 Jun, 2014 06:10 AM

    Courtenay's Avatar

    Hey Anton,

    yes, you're right.. there's a special action in the web ui to show the first comment body in the case of spam; if a discussion is marked as spam it is held in a pending state until restored. I can investigate a way of showing that in the api for you -- what's the use case? just generally building a wrapper round Tender?

  2. 2 Posted by Anton Litvinenk... on 17 Jun, 2014 06:25 PM

    Anton Litvinenko's Avatar

    yes, please investigate!

    we are trying to do API based export, so access to all the details of a discussion is important

    Thanks!

  3. 3 Posted by Anton Litvinenk... on 17 Jun, 2014 08:04 PM

    Anton Litvinenko's Avatar

    Not sure why my post didn't go through..

    Yes, please investigate this!

  4. Support Staff 4 Posted by Courtenay on 17 Jun, 2014 08:46 PM

    Courtenay's Avatar

    So, why wouldn't you use the export functionality?

  5. 5 Posted by Anton Litvinenk... on 17 Jun, 2014 09:37 PM

    Anton Litvinenko's Avatar

    is it available through API? we would like to have access via API

  6. 6 Posted by Nicole on 03 Jul, 2014 02:32 PM

    Nicole's Avatar

    All discussions and knowledge base articles are available through the API, so yes you can write a script that would grab that content or we can run the export for you. Just let us know what you prefer.

    Thanks,
    Nicole

  7. Nicole closed this discussion on 03 Jul, 2014 02:32 PM.

  8. Anton Litvinenko re-opened this discussion on 03 Jul, 2014 02:49 PM

  9. 7 Posted by Anton Litvinenk... on 03 Jul, 2014 02:49 PM

    Anton Litvinenko's Avatar

    Hey, please don't close this issue. I still didn't get answer how to get over API details of discussion that were marked as spam. Courtenay promised to investigate this, but never replied.

  10. Support Staff 8 Posted by Courtenay on 03 Jul, 2014 07:38 PM

    Courtenay's Avatar

    Can you give us a bit more detail about what you're trying to do, so we can determine where we can fit it into our existing api, or find a different solution?

  11. 9 Posted by Anton Litvinenk... on 03 Jul, 2014 08:23 PM

    Anton Litvinenko's Avatar

    I want to load information about discussions marked as spam over the API.

    In my opinion API should reflect the UI, if on UI you show more information about such discussions, then API should respond with the same amount of info.

  12. 10 Posted by Julien on 14 Jul, 2014 03:53 PM

    Julien's Avatar

    Hi Anton,

    I agree with you: API should reflect UI as close as possible. That being said, adding spam comments to the API would be a big change in behavior for all existing users of the API and this is definitely a low priority item compared to other features we are working on.

    So it is unlikely we will implement such a change in the close future.

    Let me know if you have any question.

    Cheers!

  13. Julien closed this discussion on 14 Jul, 2014 08:02 PM.

Discussions are closed to public comments.
If you need help with Tender please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac