<?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>ホームページを作る人のまとめ &#187; twitter</title>
	<atom:link href="http://www.japan-l.com/design/archives/tag/twitter/feed" rel="self" type="application/rss+xml" />
	<link>http://www.japan-l.com/design</link>
	<description>サイトのデザイン プログラム photoshopのチュートリアル jQuery wordpress ホームページのトレンド Ajax　等ホームページに関するさまざまな情報を紹介していきます。</description>
	<lastBuildDate>Mon, 09 Nov 2009 05:40:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>friendships/exists Twitter API サンプル</title>
		<link>http://www.japan-l.com/design/archives/180</link>
		<comments>http://www.japan-l.com/design/archives/180#comments</comments>
		<pubDate>Mon, 09 Nov 2009 05:37:34 +0000</pubDate>
		<dc:creator>take</dc:creator>
				<category><![CDATA[twitter]]></category>
		<category><![CDATA[api]]></category>

		<guid isPermaLink="false">http://www.japan-l.com/design/?p=180</guid>
		<description><![CDATA[friendships/existsのサンプルを作ってみた。
このメソッドは指定した2ユーザの間の friend 関係を調べる。
ってことで早速元ライブドア社長とのfriend 関係を調べるサンプルを
作ってみた。
&#60;?php
$person1 = &#8216;AP_chan&#8217;;
$person2 = &#8216;takapon_jp&#8217;;
$url = &#8216;http://twitter.com/friendships/exists&#8217;;
$format = &#8216;xml&#8217;;
$persons12 = make_request($url.&#8217;.&#8217;.$format.&#8217;?user_a=&#8217;.$person1.&#8217;&#38;user_b=&#8217;.$person2);
$result = get_match(&#8217;/&#60;friends&#62;(.*)&#60;\/friends&#62;/isU&#8217;,$persons12);
echo &#8216;&#60;p&#62;私達&#60;b&#62;&#8217;.$person1.&#8217;&#60;/b&#62;と&#60;b&#62;&#8217;.$person2.&#8217;&#60;/b&#62;は友達ですか？&#8217;.&#8217; &#124; 答えは・・・&#60;b&#62;&#8217;.$result.&#8217;&#60;/b&#62;&#60;/p&#62;&#8217;;
function make_request($url) {
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$result = curl_exec($ch);
curl_close($ch);
return $result;
}
/* gets the match */
function get_match($regex,$content)
{
preg_match($regex,$content,$matches);
return $matches[1];
}
?&#62;
こんな感じで、簡単に表示できた。
デモ　はこちら
参照はコチラ
]]></description>
			<content:encoded><![CDATA[<p>friendships/existsのサンプルを作ってみた。<br />
このメソッドは指定した2ユーザの間の friend 関係を調べる。</p>
<p>ってことで早速元ライブドア社長とのfriend 関係を調べるサンプルを<br />
作ってみた。</p>
<div style="color:blue;">&lt;?php</p>
<p>$person1 = &#8216;AP_chan&#8217;;<br />
$person2 = &#8216;takapon_jp&#8217;;</p>
<p>$url = &#8216;http://twitter.com/friendships/exists&#8217;;<br />
$format = &#8216;xml&#8217;;</p>
<p>$persons12 = make_request($url.&#8217;.&#8217;.$format.&#8217;?user_a=&#8217;.$person1.&#8217;&amp;user_b=&#8217;.$person2);<br />
$result = get_match(&#8217;/&lt;friends&gt;(.*)&lt;\/friends&gt;/isU&#8217;,$persons12);<br />
echo &#8216;&lt;p&gt;私達&lt;b&gt;&#8217;.$person1.&#8217;&lt;/b&gt;と&lt;b&gt;&#8217;.$person2.&#8217;&lt;/b&gt;は友達ですか？&#8217;.&#8217; | 答えは・・・&lt;b&gt;&#8217;.$result.&#8217;&lt;/b&gt;&lt;/p&gt;&#8217;;</p>
<p>function make_request($url) {<br />
$ch = curl_init();<br />
curl_setopt($ch,CURLOPT_URL,$url);<br />
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);<br />
$result = curl_exec($ch);<br />
curl_close($ch);<br />
return $result;<br />
}</p>
<p>/* gets the match */<br />
function get_match($regex,$content)<br />
{<br />
preg_match($regex,$content,$matches);<br />
return $matches[1];<br />
}</p>
<p>?&gt;</p></div>
<p>こんな感じで、簡単に表示できた。</p>
<p>デモ　は<a href="http://www.japan-l.com/friendships.html#demo3">こちら</a></p>
<p>参照は<a href="http://davidwalsh.name/twitter-friendships" target="_blank">コチラ</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.japan-l.com/design/archives/180/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHPとTwitter apiでアプリを作ってみる。</title>
		<link>http://www.japan-l.com/design/archives/170</link>
		<comments>http://www.japan-l.com/design/archives/170#comments</comments>
		<pubDate>Fri, 06 Nov 2009 00:39:47 +0000</pubDate>
		<dc:creator>take</dc:creator>
				<category><![CDATA[twitter]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[webアプリ]]></category>

		<guid isPermaLink="false">http://www.japan-l.com/design/?p=170</guid>
		<description><![CDATA[まずはTwitterへの登録が必要みたい。
※APIを使用するにはメールアドレスとパスワードが必要。
早速 サンプル用Twitterを登録してみる。
まずは簡単に表示できるかチェックしてみようってことで、
Twitter 仕様書を参考にPHPで作ってみた。
Twitter APIのサンプル
サンプルコードはコチラから
&#60;html&#62;
&#60;head&#62;
&#60;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=utf-8&#8243;&#62;
&#60;title&#62;Twitter API サンプル&#60;/title&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;h1&#62;Twitter API サンプル&#60;/h1&#62;
&#60;?php
//ユーザーIDとパスワードの設定
$email = &#8220;登録メールアドレス&#8220;;
$password = &#8220;登録パスワード&#8220;;
$host = &#8220;http://twitter.com/statuses/public_timeline.xml&#8221;;
$host .= &#8220;?since=&#8221;.urlencode(date(&#8217;D, d M Y G:i:s GMT&#8217;, strtotime(&#8217;-10 day&#8217;)));
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $host);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_USERPWD, &#8220;$email:$password&#8221;);
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
$result = curl_exec($ch);
curl_close($ch);
$XML = simplexml_load_string($result);
echo &#8220;&#60;ul&#62;&#8221;;
foreach ($XML-&#62;status as $status){
echo &#8220;&#60;li&#62;&#60;b style=\&#8221;color:red;\&#8221;&#62;&#8221;.$status-&#62;user-&#62;screen_name.&#8221;&#60;/b&#62;: &#8220;.$status-&#62;text.&#8221;&#60;/li&#62;&#60;hr&#62;\n&#8221;;
}
echo &#8220;&#60;/ul&#62;&#8221;;
?&#62;
&#60;p&#62;powerd by &#60;a href=&#8221;http://apiwiki.twitter.com/&#8221;&#62;Twitter API&#60;/a&#62;&#60;/p&#62;
&#60;/body&#62;
&#60;/html&#62;

こんな感じで、公開している名前とツイートを簡単に表示できた。
最新の表示はコチラ
]]></description>
			<content:encoded><![CDATA[<p>まずはTwitterへの登録が必要みたい。<br />
※APIを使用するにはメールアドレスとパスワードが必要。</p>
<p>早速 サンプル用<a title="Twitter" href="https://twitter.com/" target="_blank">Twitter</a>を登録してみる。</p>
<p>まずは簡単に表示できるかチェックしてみようってことで、<br />
<a href="http://watcher.moe-nifty.com/memo/docs/twitterAPI.txt" target="_blank">Twitter 仕様書</a>を参考にPHPで作ってみた。</p>
<p>Twitter APIの<a title="サンプル１" href="http://www.japan-l.com/design/twitter_1.php" target="_blank">サンプル</a></p>
<p>サンプルコードはコチラから</p>
<div style="color:blue;">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=utf-8&#8243;&gt;<br />
&lt;title&gt;Twitter API サンプル&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;Twitter API サンプル&lt;/h1&gt;<br />
&lt;?php</p>
<p>//ユーザーIDとパスワードの設定<br />
$email = &#8220;<span style="color:red;">登録メールアドレス</span>&#8220;;<br />
$password = &#8220;<span style="color:red;">登録パスワード</span>&#8220;;</p>
<p>$host = &#8220;http://twitter.com/statuses/public_timeline.xml&#8221;;<br />
$host .= &#8220;?since=&#8221;.urlencode(date(&#8217;D, d M Y G:i:s GMT&#8217;, strtotime(&#8217;-10 day&#8217;)));<br />
$ch = curl_init();</p>
<p>curl_setopt($ch, CURLOPT_URL, $host);<br />
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);<br />
curl_setopt($ch, CURLOPT_USERPWD, &#8220;$email:$password&#8221;);<br />
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);</p>
<p>$result = curl_exec($ch);<br />
curl_close($ch);<br />
$XML = simplexml_load_string($result);</p>
<p>echo &#8220;&lt;ul&gt;&#8221;;<br />
foreach ($XML-&gt;status as $status){<br />
echo &#8220;&lt;li&gt;&lt;b style=\&#8221;color:red;\&#8221;&gt;&#8221;.$status-&gt;user-&gt;screen_name.&#8221;&lt;/b&gt;: &#8220;.$status-&gt;text.&#8221;&lt;/li&gt;&lt;hr&gt;\n&#8221;;<br />
}<br />
echo &#8220;&lt;/ul&gt;&#8221;;</p>
<p>?&gt;<br />
&lt;p&gt;powerd by &lt;a href=&#8221;http://apiwiki.twitter.com/&#8221;&gt;Twitter API&lt;/a&gt;&lt;/p&gt;<br />
&lt;/body&gt;</p>
<p>&lt;/html&gt;
</p></div>
<p>こんな感じで、公開している名前とツイートを簡単に表示できた。<br />
最新の表示は<a title="PHPとTwitter" href="http://www.japan-l.com/design/twitter.php" target="_blank">コチラ</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.japan-l.com/design/archives/170/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>おっ！？と思わせる29個のtwitter無料スクリーン</title>
		<link>http://www.japan-l.com/design/archives/127</link>
		<comments>http://www.japan-l.com/design/archives/127#comments</comments>
		<pubDate>Thu, 15 Oct 2009 06:10:51 +0000</pubDate>
		<dc:creator>take</dc:creator>
				<category><![CDATA[photoshop]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[壁紙]]></category>

		<guid isPermaLink="false">http://www.japan-l.com/design/?p=127</guid>
		<description><![CDATA[おっ！？と思わせる29個のtwitter無料スクリーンを紹介。

All about Technology
無料で簡単にダウンロードできるので、
Twitterの雰囲気を変えたいなぁって思った時には
ここがオススメ！
]]></description>
			<content:encoded><![CDATA[<p>おっ！？と思わせる29個のtwitter無料スクリーンを紹介。</p>
<p><img title="twitterの背景" src="http://www.japan-l.com/design/wp-content/blog024.jpg" alt="twitterの背景" width="530" height="150" /></p>
<p><a href="http://www.technomoz.com/design/free-twitter-background-psds/">All about Technology</a></p>
<p>無料で簡単にダウンロードできるので、<br />
Twitterの雰囲気を変えたいなぁって思った時には<br />
ここがオススメ！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.japan-l.com/design/archives/127/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【はてブ×twitter】たった1ヶ月でPVを飛躍的に伸ばす方法</title>
		<link>http://www.japan-l.com/design/archives/122</link>
		<comments>http://www.japan-l.com/design/archives/122#comments</comments>
		<pubDate>Thu, 15 Oct 2009 02:27:01 +0000</pubDate>
		<dc:creator>take</dc:creator>
				<category><![CDATA[SEO対策]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[はてブ]]></category>
		<category><![CDATA[アクセスアップ]]></category>

		<guid isPermaLink="false">http://www.japan-l.com/design/?p=122</guid>
		<description><![CDATA[今、何かとメディアを賑らすTwitterが驚くほどアクセスアップに貢献している
ことを実証してくれているサイトをご紹介。
①たった一ヶ月で、月間2200PVのサイトが月間29000PVに劇的飛躍した方法
1.海外の面白そうな記事を、簡単にざっと翻訳して紹介するだけのエントリーを書く。
2.Twitterに、その更新情報を流す。
たったこの２点！これを毎日繰り返すこと30日で、先月の月間PVが2200（セッション数が約3000）だったサイトのが、なんと月間29000PV（セッション数が約20000）にまで跳ね上がったそうです。
②はてブと Twitter を使って、1ヶ月で約3万 PV を稼いだ顛末
1.自分のブログを作る
2.はてなのアカウントを作る
3.Twitter のアカウントを作る
4.デザイン系ブログ御用達の元ネタサイト41個を RSS リーダーに登録する
5.hatena2twitter ブックマークレットを登録する
③はてブと Twitter を使って、1ヶ月で約4万 PV を稼いだ顛末
1ヶ月間での準備や考え方は②とほぼ相違ない
タイトルだけ見たらかなり怪しそうだが、それぞれすごい結果になっている。
飛躍的に伸ばすには結果としてホッテントリに選ばれることだそうです。
]]></description>
			<content:encoded><![CDATA[<p>今、何かとメディアを賑らすTwitterが驚くほどアクセスアップに貢献している<br />
ことを実証してくれているサイトをご紹介。</p>
<p>①<a href="http://smkn.xsrv.jp/blog/2009/07/pageview_up_used_twitter/" target="_blank">たった一ヶ月で、月間2200PVのサイトが月間29000PVに劇的飛躍した方法</a></p>
<p>1.海外の面白そうな記事を、簡単にざっと翻訳して紹介するだけのエントリーを書く。<br />
2.Twitterに、その更新情報を流す。</p>
<p>たったこの２点！これを毎日繰り返すこと30日で、先月の月間PVが2200（セッション数が約3000）だったサイトのが、なんと月間29000PV（セッション数が約20000）にまで跳ね上がったそうです。</p>
<p>②<a href="http://gerenuk.crazyphoto.org/2009/06/30/1021/">はてブと Twitter を使って、1ヶ月で約3万 PV を稼いだ顛末</a></p>
<p>1.自分のブログを作る<br />
2.はてなのアカウントを作る<br />
3.Twitter のアカウントを作る<br />
4.デザイン系ブログ御用達の元ネタサイト41個を RSS リーダーに登録する<br />
5.hatena2twitter ブックマークレットを登録する</p>
<p>③<a href="http://kachibito.net/seo/hotentry-twitter-weblog.html" target="_blank">はてブと Twitter を使って、1ヶ月で約4万 PV を稼いだ顛末</a></p>
<p><span style="color: #333333; font-family: verdana,helvetica,arial,sans-serif; font-size: 14px; line-height: 20px; text-align: left;">1ヶ月間での準備や考え方は②とほぼ相違ない</span></p>
<p><span style="color: #333333; font-family: verdana,helvetica,arial,sans-serif; font-size: 14px; line-height: 20px; text-align: left;">タイトルだけ見たらかなり怪しそうだが、それぞれすごい結果になっている。</span><br />
飛躍的に伸ばすには結果として<a href="http://b.hatena.ne.jp/hotentry" target="_blank">ホッテントリ</a>に選ばれることだそうです。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.japan-l.com/design/archives/122/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

