I Doug,

I coded a little bit tonight. My colleague wrote a screenscraper to
fill in the rest of the data (inaccurately) aside of the first few
functions.


http://github.com/mikelikespie/TwitterLibGen/tree/master

The code is there. data.py contains a python version of the json (1:1
mapping) we'd us.
tweetgen.py is the self generating library.
test.py shows it in action.  Even wrote some code to check if you have
an "opener" that is authneticated so you can use it both ways.

The other stuff is the scraper my colleague wrote.


I hope you can see how this would be useful. It validates the input
and whatnot, automatically. In the future, I'd add stuff that makes
objects with the return values, and have some extra magic that you can
call from those objects.


Thanks,
Mike

On May 4, 1:21 pm, Doug Williams <[email protected]> wrote:
> Mike,
> That would be great. A good demo can go a long way.
>
> Thanks,
> Doug
>
> ----------------------------------------------------------------
> Doug Williams | Platform Support | Twitter, Inc.
>
> 539 Bryant St. Suite 402, San Francisco, CA 94107http://twitter.com/dougw
>
> On Mon, May 4, 2009 at 11:28 AM, Mike Lewis <[email protected]> wrote:
>
> > Hi Doug,
>
> > An example of what I'd be interested in is
>
> >http://www.flickr.com/services/api/flickr.reflection.getMethods.html
>
> > and
>
> >http://www.flickr.com/services/api/flickr.reflection.getMethodInfo.html
>
> > With something like that for the twitter API which shows the
> > parameters, the request type, if authentication is required, etc. it
> > would be very easy to write something that generates a library for the
> > API.
>
> > It would be able to be very robust because most of the parameter
> > checking could be done client-side, which means less guessing and
> > invalid requests to twitter. Also, when there's API changes, the
> > library could be updated automatically.
>
> > Maybe tonight or something, I'll take a couple twitter methods and put
> > them in a format similar to what I'd expect, and make a little demo on
> > how one could generate a library.
>
> > Cheers,
> > Mike
>
> > On May 4, 10:56 am, Doug Williams <[email protected]> wrote:
> > > What we have to offer is available at the wiki. If you have a great idea
> > for
> > > something we should add, a working demonstration goes a long way to
> > helping
> > > us prioritize.
>
> > > Thanks,
> > > Doug
>
> > > ----------------------------------------------------------------
> > > Doug Williams | Platform Support | Twitter, Inc.
>
> > > 539 Bryant St. Suite 402, San Francisco, CA 94107
> >http://twitter.com/dougw
>
> > > On Mon, May 4, 2009 at 12:16 AM, Mike Lewis <[email protected]>
> > wrote:
>
> > > > I'm asking for the latter. I'm quite familiar with the apiwiki.
>
> > > > On May 3, 11:19 pm, Paul Kinlan <[email protected]> wrote:
> > > > > If I am not mistaken, you can look here:
> > > >http://apiwiki.twitter.com/Twitter-API-Documentation. That is unless
> > you
> > > > > are asking for programmatic access to an api list via an api?
>
> > > > > 2009/5/4 Mike Lewis <[email protected]>
>
> > > > > > Is there a way to generate a list of API methods in JSON, or CSV
> > with
> > > > > > the parameters, or a place where one could download one.
>
> > > > > > I'm interested in this for generating a library.
>
> > > > > > Thanks,
> > > > > > Mike

Reply via email to