return tender discussion URL in API

Chris Drackett's Avatar

Chris Drackett

16 Sep, 2009 04:22 PM

I would like to give users a link to the discussion on our tender site after they have created it on our site using the API. It would be great if this URL was returned as part of the discussion resource.

  1. 1 Posted by rick on 17 Sep, 2009 01:38 AM

    rick's Avatar

    Weird, it should be. Did you check the Location header in the response?

  2. 2 Posted by Chris Drackett on 17 Sep, 2009 02:00 AM

    Chris Drackett's Avatar

    ah, no, our api wrapper just snagged the json. I'll update it to also pull the header down (or at least the location part)

  3. 3 Posted by Chris Drackett on 17 Sep, 2009 02:02 AM

    Chris Drackett's Avatar

    ok, the location header gives me something like the following:

    http://api.tenderapp.com/app_name/discussions/12345

    which I also have in the JSON. What I'm looking for is a url like the following:

    https://app_name.tenderapp.com/discussions/suggestions/2

  4. 4 Posted by rick on 28 Sep, 2009 03:38 AM

    rick's Avatar

    I'm deploying this tonight. Look for html_href keys on Categories, Discussions, Comments, Sections, FAQs, and Sites. Whew!

  5. 5 Posted by Chris Drackett on 02 Oct, 2009 12:08 AM

    Chris Drackett's Avatar

    oh, I missed your reply somehow.. should I have gotten an email?

    anyways, thanks! I'll put this into my api wrapper soon.

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