Re: [twitter-dev] Testing Twitter API webapps

2010-04-24 Thread philip crawford
You bet. I have created three twitter apps for imby. The production twitter app is in the @imby twitter account. The staging and development twitter apps are within the @imbyTest twitter account. That account is private, so people don't see all the test tweets and whatnot. Development,

Re: [twitter-dev] Testing Twitter API webapps

2010-04-23 Thread Patrick Kennedy
Yes, Twitter requires a callback URL. Make a test page to display (or save to file) your oAuth tokens. Embed those tokens into your local test page (and remove that helpful test page on hosted server). Develop locally, and add if-then blocks, depending if you are local or remote. That way, you

Re: [twitter-dev] Testing Twitter API webapps

2010-04-23 Thread philip crawford
You can use a callback URL like the following to develop locally. http://dev.local:3000/authenticated Then put your dev, stage, prod callback URLs in a config. Your app should work the same regardless of the server/environment it is running on. I also have different twitter accounts for

Re: [twitter-dev] Testing Twitter API webapps

2010-04-23 Thread Patrick Kennedy
My explaination is more language agnostic, and works for an oauth web flow. But I like your RoR idea, and it sounds like there is support for localhost development to some extent. I suppose /authenticated is the controller. How the terms dev, stage, prod fit into the rails design paradigm is