From reddaly at gmail.com Sat Jan 16 00:08:19 2010 From: reddaly at gmail.com (Red Daly) Date: Fri, 15 Jan 2010 16:08:19 -0800 Subject: [cl-twitter-devel] OAuth support In-Reply-To: References: Message-ID: Did anybody happen to pull from this repository? My computer crashed and wiped out a lot of code. :( -Red On Fri, Nov 20, 2009 at 3:32 PM, Red Daly wrote: > I added OAuth authentication to cl-twitter. ?I have forgotten how to > use darcs for submitting patches, so I have put my repo online: > > http://floatopian.com/~reddaly/darcs/cl-twitter/ > > There is also a weak hash table patch. ?Unfortunately these patches > add 2 new dependencies: cl-oauth and trivial-garbage > > Thanks, > Red > From reddaly at gmail.com Sat Jan 16 00:10:56 2010 From: reddaly at gmail.com (Red Daly) Date: Fri, 15 Jan 2010 16:10:56 -0800 Subject: [cl-twitter-devel] bug fixes and robustness changes Message-ID: The library was crashing whenever twitter adds new features, so I added some introspection of the structure objects to prevent from trying to assing to a non-existent slot. I also added a few fields. New is a dependency on closer-mop. An alternative is welcome that avoids the introspection, but it was the quickest add. Changelog: Fri Jan 15 15:59:04 PST 2010 reddaly at gmail.com * robustness to new elements by structure introspection Tue Jan 12 20:59:59 PST 2010 reddaly at gmail.com * contributors and language attributes for twitter-user Tue Jan 12 19:51:29 PST 2010 reddaly at gmail.com * various-bugfixes-red Please see the attached patch. Best, Red -------------- next part -------------- A non-text attachment was scrubbed... Name: bugs-and-robustness_darcs.patch Type: application/octet-stream Size: 17942 bytes Desc: not available URL: From cjstuij at gmail.com Fri Jan 22 10:51:29 2010 From: cjstuij at gmail.com (Ties Stuij) Date: Fri, 22 Jan 2010 16:36:29 +0545 Subject: [cl-twitter-devel] OAuth support In-Reply-To: References: Message-ID: He man, What's the status on the lost OAuth code? By sheer coincidence I just made some ad-hock oauth stuff for a twitter client site using cl-oauth. Would be nice to see what you did. /Ties On Sat, Jan 16, 2010 at 5:53 AM, Red Daly wrote: > Did anybody happen to pull from this repository? ?My computer crashed > and wiped out a lot of code. ?:( > > -Red > > On Fri, Nov 20, 2009 at 3:32 PM, Red Daly wrote: >> I added OAuth authentication to cl-twitter. ?I have forgotten how to >> use darcs for submitting patches, so I have put my repo online: >> >> http://floatopian.com/~reddaly/darcs/cl-twitter/ >> >> There is also a weak hash table patch. ?Unfortunately these patches >> add 2 new dependencies: cl-oauth and trivial-garbage >> >> Thanks, >> Red >> > > _______________________________________________ > cl-twitter-devel mailing list > cl-twitter-devel at common-lisp.net > http://common-lisp.net/cgi-bin/mailman/listinfo/cl-twitter-devel > From reddaly at gmail.com Sun Jan 24 05:01:13 2010 From: reddaly at gmail.com (Red Daly) Date: Sat, 23 Jan 2010 21:01:13 -0800 Subject: [cl-twitter-devel] OAuth support In-Reply-To: References: Message-ID: I rewrote the OAuth code, and I will submit a patch shortly All the best, Red On Fri, Jan 22, 2010 at 2:51 AM, Ties Stuij wrote: > He man, > What's the status on the lost OAuth code? By sheer coincidence I just > made some ad-hock oauth stuff for a twitter client site using > cl-oauth. Would be nice to see what you did. > > /Ties > > On Sat, Jan 16, 2010 at 5:53 AM, Red Daly wrote: >> Did anybody happen to pull from this repository? ?My computer crashed >> and wiped out a lot of code. ?:( >> >> -Red >> >> On Fri, Nov 20, 2009 at 3:32 PM, Red Daly wrote: >>> I added OAuth authentication to cl-twitter. ?I have forgotten how to >>> use darcs for submitting patches, so I have put my repo online: >>> >>> http://floatopian.com/~reddaly/darcs/cl-twitter/ >>> >>> There is also a weak hash table patch. ?Unfortunately these patches >>> add 2 new dependencies: cl-oauth and trivial-garbage >>> >>> Thanks, >>> Red >>> >> >> _______________________________________________ >> cl-twitter-devel mailing list >> cl-twitter-devel at common-lisp.net >> http://common-lisp.net/cgi-bin/mailman/listinfo/cl-twitter-devel >> > From reddaly at gmail.com Fri Jan 29 06:26:26 2010 From: reddaly at gmail.com (Red Daly) Date: Thu, 28 Jan 2010 22:26:26 -0800 Subject: [cl-twitter-devel] OAuth support In-Reply-To: References: Message-ID: Here is a patch that adds back some twitter OAuth. I consider the support incomplete (there might even be some debug-print statements still in there). darcs wanted me to include a lot of patches in this one patch file, but at least if my hard drive crashes we will have something to work with. The other patches were to make the api a little more robust to changes in Twitter's interface, though they are largely hacks. Note that you need the cl-oauth that is available here: http://github.com/gonzojive/cl-oauth I will polish this off in the next few weeks, but in case anyone wants to fool around, have at it. Red On Sat, Jan 23, 2010 at 9:01 PM, Red Daly wrote: > I rewrote the OAuth code, and I will submit a patch shortly > > All the best, > Red > > On Fri, Jan 22, 2010 at 2:51 AM, Ties Stuij wrote: >> He man, >> What's the status on the lost OAuth code? By sheer coincidence I just >> made some ad-hock oauth stuff for a twitter client site using >> cl-oauth. Would be nice to see what you did. >> >> /Ties >> >> On Sat, Jan 16, 2010 at 5:53 AM, Red Daly wrote: >>> Did anybody happen to pull from this repository? ?My computer crashed >>> and wiped out a lot of code. ?:( >>> >>> -Red >>> >>> On Fri, Nov 20, 2009 at 3:32 PM, Red Daly wrote: >>>> I added OAuth authentication to cl-twitter. ?I have forgotten how to >>>> use darcs for submitting patches, so I have put my repo online: >>>> >>>> http://floatopian.com/~reddaly/darcs/cl-twitter/ >>>> >>>> There is also a weak hash table patch. ?Unfortunately these patches >>>> add 2 new dependencies: cl-oauth and trivial-garbage >>>> >>>> Thanks, >>>> Red >>>> >>> >>> _______________________________________________ >>> cl-twitter-devel mailing list >>> cl-twitter-devel at common-lisp.net >>> http://common-lisp.net/cgi-bin/mailman/listinfo/cl-twitter-devel >>> >> > From reddaly at gmail.com Fri Jan 29 06:27:29 2010 From: reddaly at gmail.com (Red Daly) Date: Thu, 28 Jan 2010 22:27:29 -0800 Subject: [cl-twitter-devel] OAuth support In-Reply-To: References: Message-ID: Oops.. the patch! Red On Thu, Jan 28, 2010 at 10:26 PM, Red Daly wrote: > Here is a patch that adds back some twitter OAuth. ?I consider the > support incomplete (there might even be some debug-print statements > still in there). > > darcs wanted me to include a lot of patches in this one patch file, > but at least if my hard drive crashes we will have something to work > with. ?The other patches were to make the api a little more robust to > changes in Twitter's interface, though they are largely hacks. > > Note that you need the cl-oauth that is available here: > http://github.com/gonzojive/cl-oauth > > > I will polish this off in the next few weeks, but in case anyone wants > to fool around, have at it. > > Red > > On Sat, Jan 23, 2010 at 9:01 PM, Red Daly wrote: >> I rewrote the OAuth code, and I will submit a patch shortly >> >> All the best, >> Red >> >> On Fri, Jan 22, 2010 at 2:51 AM, Ties Stuij wrote: >>> He man, >>> What's the status on the lost OAuth code? By sheer coincidence I just >>> made some ad-hock oauth stuff for a twitter client site using >>> cl-oauth. Would be nice to see what you did. >>> >>> /Ties >>> >>> On Sat, Jan 16, 2010 at 5:53 AM, Red Daly wrote: >>>> Did anybody happen to pull from this repository? ?My computer crashed >>>> and wiped out a lot of code. ?:( >>>> >>>> -Red >>>> >>>> On Fri, Nov 20, 2009 at 3:32 PM, Red Daly wrote: >>>>> I added OAuth authentication to cl-twitter. ?I have forgotten how to >>>>> use darcs for submitting patches, so I have put my repo online: >>>>> >>>>> http://floatopian.com/~reddaly/darcs/cl-twitter/ >>>>> >>>>> There is also a weak hash table patch. ?Unfortunately these patches >>>>> add 2 new dependencies: cl-oauth and trivial-garbage >>>>> >>>>> Thanks, >>>>> Red >>>>> >>>> >>>> _______________________________________________ >>>> cl-twitter-devel mailing list >>>> cl-twitter-devel at common-lisp.net >>>> http://common-lisp.net/cgi-bin/mailman/listinfo/cl-twitter-devel >>>> >>> >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: prelim-oauth.patch Type: text/x-patch Size: 27290 bytes Desc: not available URL: From reddaly at gmail.com Sun Jan 31 05:13:37 2010 From: reddaly at gmail.com (Red Daly) Date: Sat, 30 Jan 2010 21:13:37 -0800 Subject: [cl-twitter-devel] cl-oauth In-Reply-To: <445DF252-7CBA-409D-8F66-CD7D2B08A74C@media.mit.edu> References: <1E3E89FB-95F9-4D6C-9D73-4DD042D16961@media.mit.edu> <445DF252-7CBA-409D-8F66-CD7D2B08A74C@media.mit.edu> Message-ID: Hi Ian, Ian Eslick wrote: > How does one use the new oauth support? 0. To configure a twitter app that uses OAuth, register the app at https://twitter.com/apps. 1. Generate a twitter.com URI to send the user by calling a cl-twitter function (oauth-make-twitter-authorization-uri). Send the user there to log in 2. The user clicks on the URI and then gives you access to their account. Then the user is redirected to your web site 3. In the redirect uri there is an auth_token GET parameter (e.g. http://yoursite.com/twitter-rebound?auth_token=xxxx). Pass this into the cl-twitter oauth-authenticate-user function and it works just like the usual authenticate-user but with the auth_token instead of username and password. A user object is returned. The functions I added are described in greater detail in their docstrings. On Sat, Jan 30, 2010 at 9:59 AM, Ian Eslick wrote: > I have 1.0, did they upgrade to 1.1 yet. ?Perhaps it's a build option where > ssl support is optional. > > I'll check into it. I do remember that being the case when I first tried out cl-oauth. I am not the original author of that library, though. Best, Red > > Sent from my iPhone > > On Jan 30, 2010, at 9:17 AM, Red Daly wrote: > >> Hi Ian, >> >> Thanks for applying the patches! >> >> On Fri, Jan 29, 2010 at 11:46 AM, Ian Eslick wrote: >>> >>> I applied your patches and updated the main repo so you can test your >>> changes (there were some merge conflicts with some general robustness code I >>> wrote but forgot to push). >>> >>> I'm getting an error about no ssl-acceptor in hunchentoot for file >>> request-adapter in cl-oauth. ?Is this a latest feature that I should be >>> depending on? >> >> >> It is possible. ?I know Hunchentoot upgraded from version .9.x to 1.0 >> in the past year, and the interface changed. ?Do you have the latest >> Hunchentoot? >> >> Hunchentoot is for the part of cl-oauth for serving, not the consumer >> portion used in cl-twitter. >> >>> >>> Thank you, >>> Ian >>> >>> >> >> Thanks, >> Red >