<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ethelcofie’s Thought-osphere &#187; flickr api</title>
	<atom:link href="http://blog.ethelcofie.com/tag/flickr-api/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ethelcofie.com</link>
	<description>Bits and Bobs from Software development,New Technologies and other random stuff i have done</description>
	<lastBuildDate>Tue, 22 Dec 2009 01:59:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Life Hacks</title>
		<link>http://blog.ethelcofie.com/2008/09/22/life-hacks/</link>
		<comments>http://blog.ethelcofie.com/2008/09/22/life-hacks/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 20:21:41 +0000</pubDate>
		<dc:creator>ethelcofie</dc:creator>
				<category><![CDATA[Experiences]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[flickr api]]></category>
		<category><![CDATA[free css templates]]></category>
		<category><![CDATA[life hacks]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[Ning.com]]></category>
		<category><![CDATA[social media]]></category>

		<guid isPermaLink="false">http://etheldcofie.wordpress.com/?p=70</guid>
		<description><![CDATA[Suggestions……
 
In need of quick design for a website, if you are like me and you probably developing the website as a favour to a friend or family member but don’t have enough time for drudging out designs your best bet is a free online CSS templates that you can download and personalize for use:
 [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span lang="EN-GB">Suggestions……</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">In need of quick design for a website, if you are like me and you probably developing the website as a favour to a friend or family member but don’t have enough time for drudging out designs your best bet is a free online CSS templates that you can download and personalize for use:</span></p>
<p class="MsoNormal"><strong><span lang="EN-GB"><span> </span></span></strong><a href="http://www.freecsstemplates.org/"><strong></strong><strong></strong></a><strong><a href="http://www.free-css.com/">http://</a></strong><cite><span lang="EN-GB"><a href="http://www.freecsstemplates.org/"><span style="font-style:normal;">www.</span><strong><span style="font-style:normal;">freecsstemplates</span></strong><span style="font-style:normal;">.org/</span></a></span></cite><cite></cite></p>
<p class="MsoNormal"><a href="http://www.free-css-templates.com/"><strong></strong><strong></strong></a><strong><a href="http://www.free-css.com/">http://</a></strong><cite><span lang="EN-GB"><a href="http://www.free-css-templates.com/"><span style="font-style:normal;">www.</span><strong><span style="font-style:normal;">free</span></strong><span style="font-style:normal;">-</span><strong><span style="font-style:normal;">css</span></strong><span style="font-style:normal;">-</span><strong><span style="font-style:normal;">templates</span></strong><span style="font-style:normal;">.com/</span></a></span></cite></p>
<p class="MsoNormal"><strong><span lang="EN-GB"><a href="http://www.free-css.com/">http://www.free-css.com/</a></span></strong></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">Else if you need to put together a simple a quick and easy website which you give over to user to take control of the content then your easiest bet is using word press as a Content Management System Mark Kirby has an excellent tutorial on his website <a href="http://mark-kirby.co.uk/2008/wordpress-as-a-cms-talk-and-sample-code/">http://mark-kirby.co.uk/2008/wordpress-as-a-cms-talk-and-sample-code/</a></span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">If you want to add an album to your website but don’t have the space or bandwidth I suggest use online photo social sites like and <a href="http://www.flickr.com/" target="_blank">Flickr</a> and use the API’s to retrieve images on demand Or just hotlink from your Facebook albums. A bit dodgy but it works! </span></p>
<p class="MsoNormal"><span lang="EN-GB">I wrote a tutorial on how to use flickr API which I presented at Bar Camp Brighton 3 <a href="http://blog.ethelcofie.com/2008/05/19/flickr-api-how-to-perform-authenticating-using-php/">http://etheldcofie.wordpress.com/2008/05/19/flickr-api-how-to-perform-authenticating-using-php/</a></span></p>
<p class="MsoNormal">
<p class="MsoNormal">If you need to knock out your own custom social netwrok for your friends, family  or people with similar interest( chocolate loving  geeks perhaps !) then use  <a href="http://www.ning.com/">Ning.com</a>. It is great platform that allows you to create your own social network and even register a domain that points to your customized social network.</p>
<p class="MsoNormal">
<p class="MsoNormal">This section will be updated as often as i can  with short cuts and life hacks&#8230; watch this space</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ethelcofie.com/2008/09/22/life-hacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flickr API: How to perform Authentication using PHP</title>
		<link>http://blog.ethelcofie.com/2008/05/19/flickr-api-how-to-perform-authenticating-using-php/</link>
		<comments>http://blog.ethelcofie.com/2008/05/19/flickr-api-how-to-perform-authenticating-using-php/#comments</comments>
		<pubDate>Mon, 19 May 2008 13:32:26 +0000</pubDate>
		<dc:creator>ethelcofie</dc:creator>
				<category><![CDATA[Development Articles]]></category>
		<category><![CDATA[flickr api]]></category>
		<category><![CDATA[flickr api authentication]]></category>

		<guid isPermaLink="false">http://etheldcofie.wordpress.com/?p=8</guid>
		<description><![CDATA[I presented this at Brighton BArCamp3 download power point
//1.Create a login link
$secret_key=&#8217;secret key&#8217;;
$params = array(
&#8216;api_key&#8217;=&#62; &#8216;api_key&#8217;,
&#8216;perms&#8217; =&#62; &#8216;write&#8217;);
$encoded_param = array();
//1.a Encode and organize authentication parameters
foreach($params as $key =&#62; $value)
{
$encoded_params[] = urlencode($key).&#8217;=&#8217;.urlencode($value);
}
//1b Create the api signature :an md5 of the parameters in alphabetic order

$apisig=md5($secret_key.&#8217;api_key&#8217;.$params['api_key'].&#8217;perms&#8217;.$params['perms']);
//1.c append api signature to url
$url =&#8221;http://flickr.com/services/auth/?&#8221;.
implode(&#8217;&#38;&#8217;,$encoded_params).&#8221;&#38;api_sig=&#8221;.$apisig;
header(&#8217;Location:&#8217;.$url); &#8211;&#62;This will then redirect back to [...]]]></description>
			<content:encoded><![CDATA[<p>I presented this at Brighton BArCamp3 <a href="http://blog.ethelcofie.com/wp-content/uploads/2008/09/flickr-php2.ppt" target="_blank">download power point</a></p>
<p><strong>//1.Create a login link</strong></p>
<p>$secret_key=&#8217;secret key&#8217;;</p>
<p>$params = array(<br />
&#8216;api_key&#8217;=&gt; &#8216;api_key&#8217;,<br />
&#8216;perms&#8217; =&gt; &#8216;write&#8217;);</p>
<p>$encoded_param = array();</p>
<p><strong>//1.a Encode and organize authentication parameters</strong></p>
<p>foreach($params as $key =&gt; $value)<br />
{<br />
$encoded_params[] = urlencode($key).&#8217;=&#8217;.urlencode($value);<br />
}</p>
<p><strong>//1b Create the api signature :an md5 of the parameters in alphabetic order</strong></p>
<p><strong></strong><br />
$apisig=md5($secret_key.&#8217;api_key&#8217;.$params['api_key'].&#8217;perms&#8217;.$params['perms']);</p>
<p><strong>//1.c append api signature to url</strong></p>
<p>$url =&#8221;<a href="http://flickr.com/services/auth/?">http://flickr.com/services/auth/?&#8221;.</a></p>
<p>implode(&#8217;&amp;&#8217;,$encoded_params).&#8221;&amp;api_sig=&#8221;.$apisig;</p>
<p>header(&#8217;Location:&#8217;.$url); &#8211;&gt;<strong>This will then redirect back to your call back url and include a frob value</strong></p>
<p><strong>//2.Get and use frob to retrive authentication token</strong></p>
<p><strong>//2.a Get frob from url </strong></p>
<p>if ($_REQUEST['frob'])<br />
{<br />
<em>//using  php_serial paramater serial to retrieve the format in serialized data structure<br />
</em> $frobparams = array(<br />
&#8216;api_key&#8217;=&gt; &#8216;api_key&#8217;,<br />
&#8216;frob&#8217; =&gt; &#8216;frob&#8217; ,<br />
&#8216;method&#8217; =&gt; &#8216;flickr.auth.getToken&#8217;,<br />
&#8216;format&#8217; =&gt; &#8216;php_serial&#8217;);</p>
<p>$encoded_param = array();</p>
<p>foreach($frobparams as $key =&gt; $value)<br />
{<br />
$encoded_params[] = urlencode($key).&#8217;=&#8217;.urlencode($value);<br />
}<br />
$url = &#8220;<a href="http://api.flickr.com/services/rest/?">http://api.flickr.com/services/rest/?&#8221;.implode(&#8217;&amp;&#8217;</a>, $encoded_params);</p>
<p><strong>//2.bCreate the api signature :an md5 of the parameters in alphabetic order</strong></p>
<p>$apisigfrob=md5(</p>
<p>$secret_key.</p>
<p>&#8216;api_key&#8217;.  $frobparams ['api_key'].</p>
<p style="text-align:left;">&#8216;format&#8217;.$frobparams ['format'].</p>
<p style="text-align:left;">&#8216;frob&#8217;.$frobparam['frob'].</p>
<p style="text-align:left;">&#8216;method&#8217;.$frobparams['method']);</p>
<p><strong></strong></p>
<p><strong>//2.c Construct url to auth.getToken</strong></p>
<p>$url=$url.&#8221;&amp;api_sig=&#8221;.$apisigfrob;</p>
<p><strong></strong></p>
<p><strong>// 2.d Get url response/contents</strong><br />
$rsp = file_get_contents($url);</p>
<p>$rsp_obj = unserialize($rsp);</p>
<p>$details=$rsp_obj;</p>
<p><strong></strong></p>
<p><strong>//2.e Glean Auth Token from $details</strong></p>
<p>if($details[stat]==&#8217;ok&#8217;)<br />
{<br />
echo  $details['auth']['token']['_content'];<br />
}<br />
else<br />
{</p>
<p>//dispaly error message if there is a problem<br />
echo  $details [message]    ;</p>
<p>}</p>
<p>}</p>
<p><strong>Just getting started:</strong> The Authentication Token can then be ussed as part of the parameter for a method call</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ethelcofie.com/2008/05/19/flickr-api-how-to-perform-authenticating-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
