Hi Patrick,

The entry point to the app is in HomeController#index -- but there's not
much interesting stuff there.

The most interesting parts of OAuth are handled in both the
service_provider.rb model, the TheDanceController for the various OAuth
steps, and then the api_request.rb model for the individual API requests.

The tool relies on the OAuth ruby gem to do much of the work, but a number
of methods throughout the gem are overridden to provide extra debugging
information and additional options in the included oauth_ghostbuster plugin
you'll find in the vendor directory.

Taylor Singletary
Developer Advocate, Twitter
http://twitter.com/episod


On Sat, Mar 20, 2010 at 10:32 PM, Patrick Kennedy <kenned...@gmail.com>wrote:

> I'm new to Rails, and I am in process of studying this oauth example.
> Since there is no index file entry point at /public, where is the
> entry point of your oauth-dancer app?  This is a newbie question of
> Rails, but it looks like a fun app for the oauth dancing purposes, and
> I wanted to follow the logic.
>
> Thanks.  Pat
>
> On Thu, Mar 18, 2010 at 10:02 PM, Taylor Singletary
> <taylorsinglet...@twitter.com> wrote:
> > Hi Z-13,
> > Using my OAuth Dancer tool ( http://bit.ly/oauth-dancer ), it's fairly
> easy
> > to setup a test scenario where you're posting a status with Cyrillic
> > characters, as long as you're using the UTF-8 representation.
> > While I don't know what specific code you'll need to write for Adobe AIR,
> > through the OAuth and HTTP request cycle, this is how it's represented:
> >
> > Full Request URI
> >
> > http://api.twitter.com/1/statuses/update.xml
> >
> > HTTP Method
> >
> > post
> >
> > Request Body
> >
> > status=ั‚ะตัั‚+on+behalf+of+another
> >
> > Content-Type
> >
> > application/x-www-form-urlencoded
> >
> > Headers
> >
> > Content-Type: application/x-www-form-urlencoded
> >
> > The OAuth Dance
> >
> > Signature Base String
> >
> > POST&http%3A%2F%2Fapi.twitter.com
> %2F1%2Fstatuses%2Fupdate.xml&oauth_consumer_key%3Dri8JxYK2ddwSV5xIUfNNvQ%26oauth_nonce%3Dn4uOLc7RCCf3PtKeEPpBiV1EdRXLyFAM72Q60J80w8s%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1268924223%26oauth_token%3D119476949-gF0B5O1Wwa2UqqIwopAhQtQVTzmfSIOSiHQS7Vf8%26oauth_version%3D1.0%26status%3D%25D1%2582%25D0%25B5%25D1%2581%25D1%2582%2520on%2520behalf%2520of%2520another
> >
> > Signature
> >
> > 6FcKffKploa26usTJuoADrtqp9Y=
> >
> > Authorization Header
> >
> > OAuth oauth_nonce="n4uOLc7RCCf3PtKeEPpBiV1EdRXLyFAM72Q60J80w8s",
> > oauth_signature_method="HMAC-SHA1", oauth_timestamp="1268924223",
> > oauth_consumer_key="ri8JxYK2ddwSV5xIUfNNvQ",
> > oauth_token="119476949-gF0B5O1Wwa2UqqIwopAhQtQVTzmfSIOSiHQS7Vf8",
> > oauth_signature="6FcKffKploa26usTJuoADrtqp9Y%3D", oauth_version="1.0"
> > Notice the encoding on the signature base string. Here's the response you
> > get back for a successful POST, which includes the special characters as
> > UTF-8 entities:
> >  <?xml version="1.0" encoding="UTF-8"?>
> >
> > <status>
> >   <created_at>Thu Mar 18 14:57:04 +0000 2010</created_at>
> >   <id>10674682220</id>
> >   <text>&#1090;&#1077;&#1089;&#1090; on behalf of another</text>
> >   <source>&lt;a href=&quot;http://realitytechnicians.com&quot;
> > rel=&quot;nofollow&quot;&gt;Crying Indian&lt;/a&gt;</source>
> >   <truncated>false</truncated>
> >   <in_reply_to_status_id></in_reply_to_status_id>
> >   <in_reply_to_user_id></in_reply_to_user_id>
> >   <favorited>false</favorited>
> >   <in_reply_to_screen_name></in_reply_to_screen_name>
> >   <user>
> >     <id>119476949</id>
> >     <name>OAuth Dancer</name>
> >     <screen_name>oauth_dancer</screen_name>
> >     <location>San Francisco, CA</location>
> >     <description></description>
> >
> > <profile_image_url>
> http://a3.twimg.com/profile_images/730275945/oauth-dancer_normal.jpg
> </profile_image_url>
> >     <url>http://bit.ly/oauth-dancer</url>
> >     <protected>false</protected>
> >     <followers_count>9</followers_count>
> >     <profile_background_color>C0DEED</profile_background_color>
> >     <profile_text_color>333333</profile_text_color>
> >     <profile_link_color>0084B4</profile_link_color>
> >     <profile_sidebar_fill_color>DDEEF6</profile_sidebar_fill_color>
> >     <profile_sidebar_border_color>C0DEED</profile_sidebar_border_color>
> >     <friends_count>11</friends_count>
> >     <created_at>Wed Mar 03 19:37:35 +0000 2010</created_at>
> >     <favourites_count>0</favourites_count>
> >     <utc_offset></utc_offset>
> >     <time_zone></time_zone>
> >
> > <profile_background_image_url>
> http://a3.twimg.com/profile_background_images/80151733/oauth-dance.png
> </profile_background_image_url>
> >     <profile_background_tile>true</profile_background_tile>
> >     <notifications>false</notifications>
> >     <geo_enabled>false</geo_enabled>
> >     <verified>false</verified>
> >     <following>false</following>
> >     <statuses_count>17</statuses_count>
> >     <lang>en</lang>
> >     <contributors_enabled>false</contributors_enabled>
> >   </user>
> >   <geo/>
> >   <coordinates/>
> >   <place/>
> >   <contributors/>
> > </status>
> >
> > Hope this helps you.
> > Taylor Singletary
> > Developer Advocate, Twitter
> > http://twitter.com/episod
> >
> >
> > On Thu, Mar 18, 2010 at 3:38 AM, Z-13 <y...@yandex.ru> wrote:
> >>
> >> Who can help me?
> >
> >
>
> To unsubscribe from this group, send email to twitter-development-talk+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>

To unsubscribe from this group, send email to 
twitter-development-talk+unsubscribegooglegroups.com or reply to this email 
with the words "REMOVE ME" as the subject.

Reply via email to