<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: High level AS3/Flex library for OAuth with Twitter from AIR</title>
	<atom:link href="http://soenkerohde.com/2009/07/high-level-as3flex-library-for-oauth-with-twitter-from-air/feed/" rel="self" type="application/rss+xml" />
	<link>http://soenkerohde.com/2009/07/high-level-as3flex-library-for-oauth-with-twitter-from-air/</link>
	<description>Flash Platform (Flash, Flex, AIR) thoughts and examples</description>
	<lastBuildDate>Sun, 20 May 2012 23:30:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Tina</title>
		<link>http://soenkerohde.com/2009/07/high-level-as3flex-library-for-oauth-with-twitter-from-air/comment-page-2/#comment-30034</link>
		<dc:creator>Tina</dc:creator>
		<pubDate>Sat, 10 Mar 2012 18:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://soenkerohde.com/?p=552#comment-30034</guid>
		<description>Okay, I have found your example of using this lib with Flash Builder for Twitter. However, I&#039;m using a different API with little documentation, which doesn&#039;t use the same call structure as Twitter, so I&#039;m again kind of lost...</description>
		<content:encoded><![CDATA[<p>Okay, I have found your example of using this lib with Flash Builder for Twitter. However, I&#8217;m using a different API with little documentation, which doesn&#8217;t use the same call structure as Twitter, so I&#8217;m again kind of lost&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tina</title>
		<link>http://soenkerohde.com/2009/07/high-level-as3flex-library-for-oauth-with-twitter-from-air/comment-page-2/#comment-30032</link>
		<dc:creator>Tina</dc:creator>
		<pubDate>Sat, 10 Mar 2012 18:29:56 +0000</pubDate>
		<guid isPermaLink="false">http://soenkerohde.com/?p=552#comment-30032</guid>
		<description>Does anyone have an example of how to use this OAuth library in Flash Builder 4.5+?

I&#039;ve pasted this into my MXML file, but I&#039;m getting hundreds of errors. Do you know why?


			import org.flaircode.oauth.*;
			import org.iotashan.oauth.*;
			import org.iotashan.utils.*;
			import flash.net.URLLoader;
			
			private var consumerKey:String = &quot;myAPIKey&quot;; // hidden for privacy purposes
			private var consumerSecret:String = &quot; myAPISecret&quot;; // hidden for privacy purposes
			
			// create OAuth
			oauth:IOAuth = new OAuth(consumerKey, consumerSecret);
			
			// get request token
			var loader:URLLoader = oauth.getRequestToken(&quot;https://myapi.req_tok.url&quot;);
			loader.addEventListener(Event.COMPLETE, requestTokenHandler);
			
			function requestTokenHandler(e:Event):void
			{
				requestToken = OAuthUtil.getTokenFromResponse(e.currentTarget.data as String);
				var request:URLRequest = oauth.getAuthorizeRequest(&quot;myapi.auth.url&quot;, requestToken.key);
				// opens website where user has to login on Twitter and gets 6 digit pin code
				navigateToURL(request, &quot;_blank&quot;);
			}
			
			function getAccessToken(pin:int):void
			{
				var loader:URLLoader = oauth.getAccessToken(&quot;https://myapi.access.url&quot;, requestToken, {oauth_verifier:pin});
				loader.addEventListener(Event.COMPLETE, accessTokenHandler);
			}
			
			function accessTokenHandler(e:Event):void
			{
				accessToken = OAuthUtil.getTokenFromResponse(e.currentTarget.data as String);
				// TODO store accessToken.key and accessToken.secret in EncryptedLocalStorage for all further requests
			}</description>
		<content:encoded><![CDATA[<p>Does anyone have an example of how to use this OAuth library in Flash Builder 4.5+?</p>
<p>I&#8217;ve pasted this into my MXML file, but I&#8217;m getting hundreds of errors. Do you know why?</p>
<p>			import org.flaircode.oauth.*;<br />
			import org.iotashan.oauth.*;<br />
			import org.iotashan.utils.*;<br />
			import flash.net.URLLoader;</p>
<p>			private var consumerKey:String = &#8220;myAPIKey&#8221;; // hidden for privacy purposes<br />
			private var consumerSecret:String = &#8221; myAPISecret&#8221;; // hidden for privacy purposes</p>
<p>			// create OAuth<br />
			oauth:IOAuth = new OAuth(consumerKey, consumerSecret);</p>
<p>			// get request token<br />
			var loader:URLLoader = oauth.getRequestToken(&#8220;https://myapi.req_tok.url&#8221;);<br />
			loader.addEventListener(Event.COMPLETE, requestTokenHandler);</p>
<p>			function requestTokenHandler(e:Event):void<br />
			{<br />
				requestToken = OAuthUtil.getTokenFromResponse(e.currentTarget.data as String);<br />
				var request:URLRequest = oauth.getAuthorizeRequest(&#8220;myapi.auth.url&#8221;, requestToken.key);<br />
				// opens website where user has to login on Twitter and gets 6 digit pin code<br />
				navigateToURL(request, &#8220;_blank&#8221;);<br />
			}</p>
<p>			function getAccessToken(pin:int):void<br />
			{<br />
				var loader:URLLoader = oauth.getAccessToken(&#8220;https://myapi.access.url&#8221;, requestToken, {oauth_verifier:pin});<br />
				loader.addEventListener(Event.COMPLETE, accessTokenHandler);<br />
			}</p>
<p>			function accessTokenHandler(e:Event):void<br />
			{<br />
				accessToken = OAuthUtil.getTokenFromResponse(e.currentTarget.data as String);<br />
				// TODO store accessToken.key and accessToken.secret in EncryptedLocalStorage for all further requests<br />
			}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh Sharma</title>
		<link>http://soenkerohde.com/2009/07/high-level-as3flex-library-for-oauth-with-twitter-from-air/comment-page-2/#comment-29235</link>
		<dc:creator>Rajesh Sharma</dc:creator>
		<pubDate>Sun, 12 Jun 2011 10:05:47 +0000</pubDate>
		<guid isPermaLink="false">http://soenkerohde.com/?p=552#comment-29235</guid>
		<description>Hey, 
Thanks for this.
I am using same library for Twitter and stuck with scope param which is not there in twitter API. Can you please let me know what needs to pass for Twitter.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hey,<br />
Thanks for this.<br />
I am using same library for Twitter and stuck with scope param which is not there in twitter API. Can you please let me know what needs to pass for Twitter.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miller Gonzalez</title>
		<link>http://soenkerohde.com/2009/07/high-level-as3flex-library-for-oauth-with-twitter-from-air/comment-page-2/#comment-29087</link>
		<dc:creator>Miller Gonzalez</dc:creator>
		<pubDate>Sat, 05 Feb 2011 17:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://soenkerohde.com/?p=552#comment-29087</guid>
		<description>Hi, nice post

For SWF application, how you can solve the sandbox problem?</description>
		<content:encoded><![CDATA[<p>Hi, nice post</p>
<p>For SWF application, how you can solve the sandbox problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken Winter</title>
		<link>http://soenkerohde.com/2009/07/high-level-as3flex-library-for-oauth-with-twitter-from-air/comment-page-2/#comment-29062</link>
		<dc:creator>Ken Winter</dc:creator>
		<pubDate>Tue, 25 Jan 2011 00:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://soenkerohde.com/?p=552#comment-29062</guid>
		<description>Sönke,

Thanks for the great library! I was able to use it successfully in an AIR app to authenticate to Twitter.  But have you ever tried authenticating to any Google Data APIs using your library?

The only changes to authenticate to Google seem to be the addition of a couple of parameters - &lt;strong&gt;scope&lt;/strong&gt;, which indicates which set of apis (Calendar, Gmail, etc) you want to use, and &lt;strong&gt;oauth_callback&lt;/strong&gt; - which Twitter doesn&#039;t appear to need, but Google seems to need it set either as the URL of a web app, or the string &quot;oob&quot; to indicate PIN-entry authentication.

(see &lt;a href=&quot;http://code.google.com/apis/accounts/docs/OAuth.html&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/apis/accounts/docs/OAuth.html&lt;/a&gt; and &lt;a href=&quot;http://code.google.com/apis/accounts/docs/OAuth_ref.html&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/apis/accounts/docs/OAuth_ref.html&lt;/a&gt; for details on the Google implementation) 

It seems like it should be very straightforward to authenticate to Google, but I&#039;ve been banging my head against a wall!  According to all their docs, I&#039;m doing everything right.  And I&#039;ve compared against requests made with their OAuth Playground (&lt;a href=&quot;http://googlecodesamples.com/oauth_playground/index.php&quot; rel=&quot;nofollow&quot;&gt;http://googlecodesamples.com/oauth_playground/index.php&lt;/a&gt;) - where you can go through the authentication process and see all requests, headers, strings to be signed, etc.  My requests and responses as far as I can tell look just like theirs!  Same string to be signed, params in the same order, it all looks good.  But when I get to the final step to get an access token, I always receive a response of 400 - &quot;The token is invalid&quot; - no parameter errors, or signature errors, just this cryptic error.

I don&#039;t know if Google sees something strange in requests coming from an AIR app, or there are some undocumented differences Google requires for installed apps - I&#039;m stumped.

It would obviously be fantastic to build AIR apps that interact with the Google Data APIs, but I&#039;m out of ideas.  Do you have any insights or experience here?  Cheers...</description>
		<content:encoded><![CDATA[<p>Sönke,</p>
<p>Thanks for the great library! I was able to use it successfully in an AIR app to authenticate to Twitter.  But have you ever tried authenticating to any Google Data APIs using your library?</p>
<p>The only changes to authenticate to Google seem to be the addition of a couple of parameters &#8211; <strong>scope</strong>, which indicates which set of apis (Calendar, Gmail, etc) you want to use, and <strong>oauth_callback</strong> &#8211; which Twitter doesn&#8217;t appear to need, but Google seems to need it set either as the URL of a web app, or the string &#8220;oob&#8221; to indicate PIN-entry authentication.</p>
<p>(see <a href="http://code.google.com/apis/accounts/docs/OAuth.html" rel="nofollow">http://code.google.com/apis/accounts/docs/OAuth.html</a> and <a href="http://code.google.com/apis/accounts/docs/OAuth_ref.html" rel="nofollow">http://code.google.com/apis/accounts/docs/OAuth_ref.html</a> for details on the Google implementation) </p>
<p>It seems like it should be very straightforward to authenticate to Google, but I&#8217;ve been banging my head against a wall!  According to all their docs, I&#8217;m doing everything right.  And I&#8217;ve compared against requests made with their OAuth Playground (<a href="http://googlecodesamples.com/oauth_playground/index.php" rel="nofollow">http://googlecodesamples.com/oauth_playground/index.php</a>) &#8211; where you can go through the authentication process and see all requests, headers, strings to be signed, etc.  My requests and responses as far as I can tell look just like theirs!  Same string to be signed, params in the same order, it all looks good.  But when I get to the final step to get an access token, I always receive a response of 400 &#8211; &#8220;The token is invalid&#8221; &#8211; no parameter errors, or signature errors, just this cryptic error.</p>
<p>I don&#8217;t know if Google sees something strange in requests coming from an AIR app, or there are some undocumented differences Google requires for installed apps &#8211; I&#8217;m stumped.</p>
<p>It would obviously be fantastic to build AIR apps that interact with the Google Data APIs, but I&#8217;m out of ideas.  Do you have any insights or experience here?  Cheers&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sönke</title>
		<link>http://soenkerohde.com/2009/07/high-level-as3flex-library-for-oauth-with-twitter-from-air/comment-page-2/#comment-29006</link>
		<dc:creator>Sönke</dc:creator>
		<pubDate>Tue, 11 Jan 2011 21:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://soenkerohde.com/?p=552#comment-29006</guid>
		<description>True, you would have to replace UIDUtil with your own implementation.</description>
		<content:encoded><![CDATA[<p>True, you would have to replace UIDUtil with your own implementation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PEZ</title>
		<link>http://soenkerohde.com/2009/07/high-level-as3flex-library-for-oauth-with-twitter-from-air/comment-page-2/#comment-29004</link>
		<dc:creator>PEZ</dc:creator>
		<pubDate>Tue, 11 Jan 2011 20:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://soenkerohde.com/?p=552#comment-29004</guid>
		<description>This is very good but it seems you can not use this library for an AS3 only project. As it is built on top of the Oauth-as3 lib which in turn relies on some Flex packages. Specifically &quot;&lt;b&gt;mx.utils.UIDUtil&lt;/b&gt;&quot;. If your trying to use in an Actionscript only project there seems to be an error that can only be resolved by turning your AS3 project into a Flex Project.</description>
		<content:encoded><![CDATA[<p>This is very good but it seems you can not use this library for an AS3 only project. As it is built on top of the Oauth-as3 lib which in turn relies on some Flex packages. Specifically &#8220;<b>mx.utils.UIDUtil</b>&#8220;. If your trying to use in an Actionscript only project there seems to be an error that can only be resolved by turning your AS3 project into a Flex Project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: _mark</title>
		<link>http://soenkerohde.com/2009/07/high-level-as3flex-library-for-oauth-with-twitter-from-air/comment-page-2/#comment-28687</link>
		<dc:creator>_mark</dc:creator>
		<pubDate>Wed, 13 Oct 2010 16:44:36 +0000</pubDate>
		<guid isPermaLink="false">http://soenkerohde.com/?p=552#comment-28687</guid>
		<description>i know this is specifically to use oauth api to twitter .. but i&#039;m assuming i can mod it to use it with any api?  need multiple api oauth to as3 communications without problems.  suggestions?  thanks! :D</description>
		<content:encoded><![CDATA[<p>i know this is specifically to use oauth api to twitter .. but i&#8217;m assuming i can mod it to use it with any api?  need multiple api oauth to as3 communications without problems.  suggestions?  thanks! <img src='http://soenkerohde.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Facebook, the Open Graph and OAuth 2.0 &#124; zedia flash blog</title>
		<link>http://soenkerohde.com/2009/07/high-level-as3flex-library-for-oauth-with-twitter-from-air/comment-page-2/#comment-28615</link>
		<dc:creator>Facebook, the Open Graph and OAuth 2.0 &#124; zedia flash blog</dc:creator>
		<pubDate>Thu, 08 Jul 2010 14:14:16 +0000</pubDate>
		<guid isPermaLink="false">http://soenkerohde.com/?p=552#comment-28615</guid>
		<description>[...] 3 simply called oauth-as3. There is not much documentation on how to use it but if found this pretty good example for using it in conjunction with AIR. The user flow is a bit different when you are integrating OAuth in a website so you have to tweak [...]</description>
		<content:encoded><![CDATA[<p>[...] 3 simply called oauth-as3. There is not much documentation on how to use it but if found this pretty good example for using it in conjunction with AIR. The user flow is a bit different when you are integrating OAuth in a website so you have to tweak [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://soenkerohde.com/2009/07/high-level-as3flex-library-for-oauth-with-twitter-from-air/comment-page-2/#comment-28211</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Tue, 02 Feb 2010 17:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://soenkerohde.com/?p=552#comment-28211</guid>
		<description>Thanks, I&#039;ll give it a look.</description>
		<content:encoded><![CDATA[<p>Thanks, I&#8217;ll give it a look.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

