API for retrieving the file drawer

isak's Avatar

isak

29 Jan, 2013 03:27 PM

How can I access (read-only is fine) the files that are in the file drawer using the API. That is, using http://api.tenderapp.com/{site}/faqs/{number}?auth={token}, I can get the body, but how can I get hold of images that are referenced by /help/assets/...?

  1. 1 Posted by Julien on 29 Jan, 2013 07:09 PM

    Julien's Avatar

    Hi Isak,

    We don't offer any API to list files. You can however simply download them. What is it exactly that you are trying to do?

    Thanks!

  2. 2 Posted by isak on 29 Jan, 2013 09:11 PM

    isak's Avatar

    Hi Julien,
    Well, the API is all about integration and automation, isn't it? I am trying to write a small script that will grab faqs from our tender, filter out articles with the right keywords, pass it through pandoc and create pdfs for some offline packages.

  3. 3 Posted by Julien on 29 Jan, 2013 09:18 PM

    Julien's Avatar

    Hey Isak,

    We could provide an API for the assets, it just hasn't come up before. Right now you're best bet is probably to simply parse the KB text or HTML to extract the links out and download the assets that way. I know it's not as nice as using an API but it should be pretty easy to do.

  4. Julien closed this discussion on 30 Jan, 2013 08:17 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