Any other searches supported besides ?email=xxx on the /users action?

Chris Markle's Avatar

Chris Markle

11 Dec, 2009 06:29 AM

In discussion locating users via the JSON API rick noted that he had implemented a a way to search by email on the /users action ala:

# make sure the email is properly url encoded, of course
GET /users?email=[email blocked]

I tried this and it worked for me. It did make me wonder though what other ?xxx=yyy search options you might have implemented at the same time and are now supporting. Care to divulge that? Thanks!

  1. 1 Posted by rick on 11 Dec, 2009 05:55 PM

    rick's Avatar

    That's it right now. I was thinking of adding searches for name and state as well. I know the docs are incomplete (I'm working on documenting some new features added in the last couple weeks actually), but the API itself will let you know about query params:

    GET api.tenderapp.com/YOURSITE
    {"href"=>"http://api.tenderapp.com/YOURSITE",
    "profile_href"=>"http://api.tenderapp.com/YOURSITE/profile", 
    "users_href"=>"http://api.tenderapp.com/YOURSITE/users{-opt|?|page,email}{-join|&|page,email}"
    ...}
    

    The URI template isn't the easiest to read, but it only mentions page and email parameters.

  2. 2 Posted by Chris Markle on 11 Dec, 2009 06:35 PM

    Chris Markle's Avatar

    Thanks Rick. I'd certainly vote for both of those query options you noted - name and state.

  3. Support Staff 3 Posted by Courtenay on 11 Dec, 2009 08:04 PM

    Courtenay's Avatar

    What about company_name as well ;)

  4. 4 Posted by rick on 11 Dec, 2009 08:10 PM

    rick's Avatar

    Well, you have access to the code base, add it yourself :)

  5. 5 Posted by Chris Markle on 11 Dec, 2009 10:59 PM

    Chris Markle's Avatar

    Rick,

    > Well, you have access to the code base, add it yourself :)

    I do? I am very very new to Tender so I didn't know that. Where is it hosted?

    Chris

  6. 6 Posted by Will on 11 Dec, 2009 11:00 PM

    Will's Avatar

    Heh...

    cmarkle -- he was talking to Courtenay as far as access to the codebase goes.

  7. 7 Posted by rick on 11 Dec, 2009 11:08 PM

    rick's Avatar

    Hah, sorry that was unclear. That was just some inner company elbow
    nudging. We're definitely not in the habit of telling our customers
    to fix the bug themselves, RTFM, etc.

    I have a dev ticket open for this now.

  8. Support Staff 8 Posted by Courtenay on 12 Dec, 2009 01:43 AM

    Courtenay's Avatar

    Yeah sorry, we have a lot of fun building Tender. Sometimes that
    spills over into customer service.

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