<?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 for Wackylabs.net</title>
	<atom:link href="http://www.wackylabs.net/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wackylabs.net</link>
	<description>Mostly code, sometimes something else, always slightly wacky.</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:00:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on OAuth and Flickr &#8211; Part 2 by Sam</title>
		<link>http://www.wackylabs.net/2011/12/oauth-and-flickr-part-2/#comment-13316</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Thu, 02 Feb 2012 13:00:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.wackylabs.net/?p=301#comment-13316</guid>
		<description>No, that&#039;s probably the simplest. Obviously if you wrap the call to getPhotos in a function and pass in the page number and per page number then it shouldn&#039;t be too hard to do it either way really.</description>
		<content:encoded><![CDATA[<p>No, that&#8217;s probably the simplest. Obviously if you wrap the call to getPhotos in a function and pass in the page number and per page number then it shouldn&#8217;t be too hard to do it either way really.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on OAuth and Flickr &#8211; Part 2 by John</title>
		<link>http://www.wackylabs.net/2011/12/oauth-and-flickr-part-2/#comment-13309</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 02 Feb 2012 12:04:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.wackylabs.net/?p=301#comment-13309</guid>
		<description>Ok Sam engaged brain.. Download all images and store the links in a collection. Show first 20. When a&#039;Next page&#039; button is clicked simply show the next 20...only make a fresh call once the limit...500 has been reached.  Any other way of achieving the same thing ?</description>
		<content:encoded><![CDATA[<p>Ok Sam engaged brain.. Download all images and store the links in a collection. Show first 20. When a&#8217;Next page&#8217; button is clicked simply show the next 20&#8230;only make a fresh call once the limit&#8230;500 has been reached.  Any other way of achieving the same thing ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on OAuth and Flickr &#8211; Part 2 by John</title>
		<link>http://www.wackylabs.net/2011/12/oauth-and-flickr-part-2/#comment-13308</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 02 Feb 2012 11:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.wackylabs.net/?p=301#comment-13308</guid>
		<description>Hi Sam,
I want to paginate images in groups of 20.  When I call flickr.photosets.getPhotos I need to pass it a page number which will be created dynamically .  Do I have to go through all the process of creating a list of parameters, and generate a new signature everytime I call for the next page ?</description>
		<content:encoded><![CDATA[<p>Hi Sam,<br />
I want to paginate images in groups of 20.  When I call flickr.photosets.getPhotos I need to pass it a page number which will be created dynamically .  Do I have to go through all the process of creating a list of parameters, and generate a new signature everytime I call for the next page ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on OAuth and Flickr &#8211; Part 2 by John</title>
		<link>http://www.wackylabs.net/2011/12/oauth-and-flickr-part-2/#comment-12767</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 25 Jan 2012 08:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.wackylabs.net/?p=301#comment-12767</guid>
		<description>Sam, you are a gem... came in this morning and reread your blog. I noticed the phrase,

&#039;As this is the first stage you have neither, so your token secret is simply an empty string.&#039; 

Added the oauth_token_secret and voila, the expected string is returned.

I guess I should create a blog to save others from the pain...

Many thanks,  you don&#039;t know how relieved I am :-).</description>
		<content:encoded><![CDATA[<p>Sam, you are a gem&#8230; came in this morning and reread your blog. I noticed the phrase,</p>
<p>&#8216;As this is the first stage you have neither, so your token secret is simply an empty string.&#8217; </p>
<p>Added the oauth_token_secret and voila, the expected string is returned.</p>
<p>I guess I should create a blog to save others from the pain&#8230;</p>
<p>Many thanks,  you don&#8217;t know how relieved I am :-).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on OAuth and Flickr &#8211; Part 2 by Sam</title>
		<link>http://www.wackylabs.net/2011/12/oauth-and-flickr-part-2/#comment-12737</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Tue, 24 Jan 2012 16:56:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.wackylabs.net/?p=301#comment-12737</guid>
		<description>If you base string matches exactly the debug_sbs then you either have the signature secret wrong (consumer secret + &quot;&amp;&quot; + request token secret) or you aren&#039;t adding the signature to the final URL correctly (not urlencoded perhaps?)</description>
		<content:encoded><![CDATA[<p>If you base string matches exactly the debug_sbs then you either have the signature secret wrong (consumer secret + &#8220;&#038;&#8221; + request token secret) or you aren&#8217;t adding the signature to the final URL correctly (not urlencoded perhaps?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on OAuth and Flickr &#8211; Part 2 by John</title>
		<link>http://www.wackylabs.net/2011/12/oauth-and-flickr-part-2/#comment-12734</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 24 Jan 2012 16:21:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.wackylabs.net/?p=301#comment-12734</guid>
		<description>This feels like nailing jelly to a wall...
Anyway I send the appropriate string:
GET
&amp;http%3A%2F%2Fwww.flickr.com%2Fservices%2Foauth%2Faccess_token
&amp;oauth_consumer_key%3Dbe211209a5054354064bfec8fb0cada6
&amp;oauth_nonce%3D35197928
&amp;oauth_signature_method%3DHMAC-SHA1
&amp;oauth_timestamp%3D1327421466
&amp;oauth_token%3D72157629013334217-4a83d8a75d6764d1
&amp;oauth_verifier%3D755-955-488
&amp;oauth_version%3D1.0

This generates a signature of 6FDW75A0amJrpnlR+85GkmnmTCg=

I get an error back of

oauth_problem=signature_invalid&amp;debug_sbs=GET&amp;http%3A%2F%2Fwww.flickr.com%2Fservices%2Foauth%2Faccess_token&amp;oauth_consumer_key%3Dbe211209a5054354064bfec8fb0cada6%26oauth_nonce%3D35197928%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1327421466%26oauth_token%3D72157629013334217-4a83d8a75d6764d1%26oauth_verifier%3D755-955-488%26oauth_version%3D1.0

If I take the string returned in the error message and generate a signature from it I get
EXACTLY the same signature...so why the error ?  Unless they use a different encryption algorthm to the one used in the request token 

I&#039;m loosing the will to live ...</description>
		<content:encoded><![CDATA[<p>This feels like nailing jelly to a wall&#8230;<br />
Anyway I send the appropriate string:<br />
GET<br />
&amp;http%3A%2F%2Fwww.flickr.com%2Fservices%2Foauth%2Faccess_token<br />
&amp;oauth_consumer_key%3Dbe211209a5054354064bfec8fb0cada6<br />
&amp;oauth_nonce%3D35197928<br />
&amp;oauth_signature_method%3DHMAC-SHA1<br />
&amp;oauth_timestamp%3D1327421466<br />
&amp;oauth_token%3D72157629013334217-4a83d8a75d6764d1<br />
&amp;oauth_verifier%3D755-955-488<br />
&amp;oauth_version%3D1.0</p>
<p>This generates a signature of 6FDW75A0amJrpnlR+85GkmnmTCg=</p>
<p>I get an error back of</p>
<p>oauth_problem=signature_invalid&amp;debug_sbs=GET&amp;http%3A%2F%2Fwww.flickr.com%2Fservices%2Foauth%2Faccess_token&amp;oauth_consumer_key%3Dbe211209a5054354064bfec8fb0cada6%26oauth_nonce%3D35197928%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1327421466%26oauth_token%3D72157629013334217-4a83d8a75d6764d1%26oauth_verifier%3D755-955-488%26oauth_version%3D1.0</p>
<p>If I take the string returned in the error message and generate a signature from it I get<br />
EXACTLY the same signature&#8230;so why the error ?  Unless they use a different encryption algorthm to the one used in the request token </p>
<p>I&#8217;m loosing the will to live &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on OAuth and Flickr &#8211; Part 2 by Sam</title>
		<link>http://www.wackylabs.net/2011/12/oauth-and-flickr-part-2/#comment-12729</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Tue, 24 Jan 2012 13:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.wackylabs.net/?p=301#comment-12729</guid>
		<description>The &quot;perms&quot; parameter is passed to the authorize URL, not to the access_token URL.

http://www.flickr.com/services/oauth/authorize?oauth_token=72157626737672178-022bbd2f4c2f3432&amp;perms=write

But generally ALL parameter sent in the URL need to be added to the signature.</description>
		<content:encoded><![CDATA[<p>The &#8220;perms&#8221; parameter is passed to the authorize URL, not to the access_token URL.</p>
<p><a href="http://www.flickr.com/services/oauth/authorize?oauth_token=72157626737672178-022bbd2f4c2f3432&#038;perms=write" rel="nofollow">http://www.flickr.com/services/oauth/authorize?oauth_token=72157626737672178-022bbd2f4c2f3432&#038;perms=write</a></p>
<p>But generally ALL parameter sent in the URL need to be added to the signature.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on OAuth and Flickr &#8211; Part 2 by John</title>
		<link>http://www.wackylabs.net/2011/12/oauth-and-flickr-part-2/#comment-12724</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 24 Jan 2012 09:41:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.wackylabs.net/?p=301#comment-12724</guid>
		<description>Hi Sam, Just read my previous post and if it appears unpolite/testy I apologize.  You have been a great help in this.
I&#039;ve already tried adding the &#039;three-dash&#039; number as the verifier but still no joy.
Two further questions tho&#039;. The verifier in the documentation is a 16 figure digit, so I was uncertain this actually was the oauth_verifier.  Is the documentation incorrect ?
Also, do I include the dashes?
The documentation says I should use :
http://www.flickr.com/services/oauth/access_token
?oauth_nonce=37026218
&amp;oauth_timestamp=1305586309
&amp;oauth_verifier=5d1b96a26b494074
&amp;oauth_consumer_key=653e7a6ecc1d528c516cc8f92cf98611
&amp;oauth_signature_method=HMAC-SHA1
&amp;oauth_version=1.0
&amp;oauth_token=72157626737672178-022bbd2f4c2f3432
&amp;oauth_signature=UD9TGXzrvLIb0Ar5ynqvzatM58U%3D

Here&#039;s my version:
http://www.flickr.com/services/oauth/access_token
&amp;oauth_consumer_key=be211209a5054354064bfec8fb0cada6
&amp;oauth_nonce=64631345
&amp;oauth_signature_method=HMAC-SHA1
&amp;oauth_timestamp=1327398023
&amp;oauth_token=72157629009648509-80723eb271cd2bc6
&amp;oauth_verifier=873-728-592
&amp;oauth_version=1.0
&amp;oauth_signature=41kdqcqpqhl2f2IM/kxKB//0Gr8=
&amp;perms=write

The response is a message from Flickr stating &#039;You don&#039;t have permission to access this URL on this server&#039; . 

Does the &#039;perms=write&#039; have to be part of the signature ?</description>
		<content:encoded><![CDATA[<p>Hi Sam, Just read my previous post and if it appears unpolite/testy I apologize.  You have been a great help in this.<br />
I&#8217;ve already tried adding the &#8216;three-dash&#8217; number as the verifier but still no joy.<br />
Two further questions tho&#8217;. The verifier in the documentation is a 16 figure digit, so I was uncertain this actually was the oauth_verifier.  Is the documentation incorrect ?<br />
Also, do I include the dashes?<br />
The documentation says I should use :<br />
<a href="http://www.flickr.com/services/oauth/access_token" rel="nofollow">http://www.flickr.com/services/oauth/access_token</a><br />
?oauth_nonce=37026218<br />
&amp;oauth_timestamp=1305586309<br />
&amp;oauth_verifier=5d1b96a26b494074<br />
&amp;oauth_consumer_key=653e7a6ecc1d528c516cc8f92cf98611<br />
&amp;oauth_signature_method=HMAC-SHA1<br />
&amp;oauth_version=1.0<br />
&amp;oauth_token=72157626737672178-022bbd2f4c2f3432<br />
&amp;oauth_signature=UD9TGXzrvLIb0Ar5ynqvzatM58U%3D</p>
<p>Here&#8217;s my version:<br />
<a href="http://www.flickr.com/services/oauth/access_token" rel="nofollow">http://www.flickr.com/services/oauth/access_token</a><br />
&amp;oauth_consumer_key=be211209a5054354064bfec8fb0cada6<br />
&amp;oauth_nonce=64631345<br />
&amp;oauth_signature_method=HMAC-SHA1<br />
&amp;oauth_timestamp=1327398023<br />
&amp;oauth_token=72157629009648509-80723eb271cd2bc6<br />
&amp;oauth_verifier=873-728-592<br />
&amp;oauth_version=1.0<br />
&amp;oauth_signature=41kdqcqpqhl2f2IM/kxKB//0Gr8=<br />
&amp;perms=write</p>
<p>The response is a message from Flickr stating &#8216;You don&#8217;t have permission to access this URL on this server&#8217; . </p>
<p>Does the &#8216;perms=write&#8217; have to be part of the signature ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on OAuth and Flickr &#8211; Part 2 by Sam</title>
		<link>http://www.wackylabs.net/2011/12/oauth-and-flickr-part-2/#comment-12689</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Mon, 23 Jan 2012 16:31:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.wackylabs.net/?p=301#comment-12689</guid>
		<description>Once you have the number with three-dashes that is the oauth_verifier. You then send that, along with the request token to the access_token URL.</description>
		<content:encoded><![CDATA[<p>Once you have the number with three-dashes that is the oauth_verifier. You then send that, along with the request token to the access_token URL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on OAuth and Flickr &#8211; Part 2 by John</title>
		<link>http://www.wackylabs.net/2011/12/oauth-and-flickr-part-2/#comment-12682</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 23 Jan 2012 14:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.wackylabs.net/?p=301#comment-12682</guid>
		<description>Hi, Finally managed to get the Request token from Flickr.  I understand from the Flickr documentation that if I need to view private photos I now need to exchange the request token for an access token .  I send to flickr  http://www.flickr.com/services/oauth/authorize?oauth_token=...  with all relevant request parameters.  Flickr responds with the authorisation page and I click the authorise this app button.  Flickr responds again by saying  that I am authorised and displays three -dash- seperated numbers and asks that I add this to my app.  The actual documentation doesn&#039;t mention this response instead it indicates I should expect a simple string ... ie .
&quot;Flickr returns a response similar to the following:

fullname=Jamal%20Fanaian
&amp;oauth_token=72157626318069415-087bfc7b5816092c
&amp;oauth_token_secret=a202d1f853ec69de
&amp;user_nsid=21207597%40N07
&amp;username=jamalfanaian&quot;

Have you come across this ?  What is supposed to happen now ?  Anybody ?</description>
		<content:encoded><![CDATA[<p>Hi, Finally managed to get the Request token from Flickr.  I understand from the Flickr documentation that if I need to view private photos I now need to exchange the request token for an access token .  I send to flickr  <a href="http://www.flickr.com/services/oauth/authorize?oauth_token=.." rel="nofollow">http://www.flickr.com/services/oauth/authorize?oauth_token=..</a>.  with all relevant request parameters.  Flickr responds with the authorisation page and I click the authorise this app button.  Flickr responds again by saying  that I am authorised and displays three -dash- seperated numbers and asks that I add this to my app.  The actual documentation doesn&#8217;t mention this response instead it indicates I should expect a simple string &#8230; ie .<br />
&#8220;Flickr returns a response similar to the following:</p>
<p>fullname=Jamal%20Fanaian<br />
&amp;oauth_token=72157626318069415-087bfc7b5816092c<br />
&amp;oauth_token_secret=a202d1f853ec69de<br />
&amp;user_nsid=21207597%40N07<br />
&amp;username=jamalfanaian&#8221;</p>
<p>Have you come across this ?  What is supposed to happen now ?  Anybody ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

