Testing URL

6 views
Skip to first unread message

Hamish Campbell

unread,
Dec 11, 2008, 12:17:18 AM12/11/08
to Twitter Development Talk
Hi all,

Perhaps this already exists, but if not it would be great: a URL or
flag for API testing.

Eg, all requests to this service would process the queries for only
for validity of the message (and ignore whether the status/user/
favorite etc exists) and return an sample dataset as would be expected
of a successful request.

Malformed requests would return the expected failure notice, and
perhaps a 'return false' flag could be added to tell the api to send
the relevant negative response for a particular request.

Since it would have no effect on any actual data, it would not need to
be rate limited (or at least the rate could be extremely high and only
by I.P.).

This would be great for unit testing. At the moment it's difficult to
create a testing framework that works reliably. Especially if you want
other people to be able to run the tests, but not see your twitter
password :P. For example, you have to generate a random status message
to avoid the 'ignore repeated messages' issue, and create and destroy
friendships and notifications that you've manually set up.

It's not a biggie, but would be a very useful developer tool.

Thanks!

Alex Payne

unread,
Dec 11, 2008, 12:00:51 PM12/11/08
to twitter-deve...@googlegroups.com
We'd like to provide something like this. Please file an enhancement
request: http://code.google.com/p/twitter-api/issues/entry.

--
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x

Swap

unread,
Dec 11, 2008, 11:43:50 AM12/11/08
to Twitter Development Talk
Something close to a sandbox? Sounds cool.

Hamish Campbell

unread,
Dec 11, 2008, 5:40:01 PM12/11/08
to Twitter Development Talk
Submitted - apologies for the 'double posting' - google returned a 500
error, even though it had been submitted :/

Thanks
Hamish
Reply all
Reply to author
Forward
0 new messages