[Drop.io API] Action for validating API key

2 views
Skip to first unread message

Jay Goodman Tamboli

unread,
Apr 16, 2010, 4:29:07 PM4/16/10
to dropi...@googlegroups.com
Is there an easy way to validate an API key via REST? I didn't see anything in the API reference that looked like it was designed for that. I could just try to create a short-lived empty drop, but that seems wasteful.

I'm working on an app that lets a user enter an API key, and I'd like to check to make sure it works before I try to use it for anything practical.

Thanks.

/jgt
--
http://tamboli.cx/, PGP key ID 64301A5F

PGP.sig

Jacob Robbins

unread,
Apr 16, 2010, 4:42:23 PM4/16/10
to dropi...@googlegroups.com
you could try fetching a known drop. that will give you the api key
invalid error if the key is not good.
--
You received this message because you are subscribed to the Google Groups "Drop.io API" group.
To post to this group, send email to dropi...@googlegroups.com.
To unsubscribe from this group, send email to dropio-api+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dropio-api?hl=en.

Jake Good

unread,
Apr 16, 2010, 5:03:59 PM4/16/10
to dropi...@googlegroups.com
I believe that the API Key error is the first that comes back (in the
chain of errors). So just about any call to the API would work. But I
wouldn't really rely on that.

If you did a call to:

http://api.drop.io/drops/?api_key=<INSERT YOUR API KEY>&version=2.0

and got a 404, your key works. I know it sounds strange, but even if
we were to do something at the /drops level, it would probably return
something useful.

Jake Good
http://dev.drop.io
Reply all
Reply to author
Forward
0 new messages