<?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://chet.printhong.net/tag/twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://chet.printhong.net</link>
	<description>เชษฐพงษ์ ปรินทอง</description>
	<lastBuildDate>Sat, 12 Nov 2011 22:47:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>การนำข้อความในทวิตเตอร์มาแสดงบนเว็บ (ตอนที่ 2)</title>
		<link>http://chet.printhong.net/201007/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%99%e0%b8%b3%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b9%83%e0%b8%99%e0%b8%97%e0%b8%a7%e0%b8%b4%e0%b8%95%e0%b9%80%e0%b8%95%e0%b8%ad%e0%b8%a3-2/</link>
		<comments>http://chet.printhong.net/201007/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%99%e0%b8%b3%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b9%83%e0%b8%99%e0%b8%97%e0%b8%a7%e0%b8%b4%e0%b8%95%e0%b9%80%e0%b8%95%e0%b8%ad%e0%b8%a3-2/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 08:50:02 +0000</pubDate>
		<dc:creator>chet</dc:creator>
				<category><![CDATA[สนทนาปัญหาบ้าบอ]]></category>
		<category><![CDATA[เล่าสู่กันฟัง]]></category>
		<category><![CDATA[ไม่เข้าหมวดหมู่]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://chet.printhong.net/?p=584</guid>
		<description><![CDATA[ผมเคยเขียนไว้แล้วครั้งนึงที่นี่ แต่นั่นเป็นการใช้งาน api ของทางทวิตเตอร์เองโดยใช้คำและเงื่อนไขสืบค้น เช่น โดยใคร ถึงใคร เรื่องอะไร ที่ไหน เมื่อไหร่ มีบางเงื่อนไขที่เราอยากแสดงเช่น public timeline ของเราเองที่แสดงทุกข้อความของเราและทุกคนที่เราติดตาม เหมือนตัวอย่างทางด้านขวามือ ᐅᐅᐅᐅ มีหลายวิธีนะครับ วิธีที่สะดวกสุดคือใช้โปรแกรมที่เราคุ้นเคย นั่นคือ php, curl และ simpleXML เพื่อไปดึงข้อมูลมาและแสดงผล วิธีการและขั้นตอน ใช้ curl ไปดึงข้อมูลมาจาก Friends Timeline http://twitter.com/statuses/friends_timeline.xml นำข้อมูลที่ดึงมาไปยัดเข้าตัวแปร ด้วย simpleXML บน php นำข้อมูลในตัวแปรมาแสดงบนเว็บ ตามรูปแบบที่เราต้องการ ตัวอย่าง source-code]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-615 alignright" title="twitter" src="http://chet.printhong.net/wp-content/uploads/2010/07/tw001.gif" alt="twitter" width="198" height="269" /></p>
<p><a href="http://chet.printhong.net/?p=196" target="_blank">ผมเคยเขียนไว้แล้วครั้งนึงที่นี่</a> แต่นั่นเป็นการใช้งาน api ของทางทวิตเตอร์เองโดยใช้คำและเงื่อนไขสืบค้น เช่น โดยใคร ถึงใคร เรื่องอะไร ที่ไหน เมื่อไหร่ มีบางเงื่อนไขที่เราอยากแสดงเช่น public timeline ของเราเองที่แสดงทุกข้อความของเราและทุกคนที่เราติดตาม เหมือนตัวอย่างทางด้านขวามือ ᐅᐅᐅᐅ</p>
<p>มีหลายวิธีนะครับ วิธีที่สะดวกสุดคือใช้โปรแกรมที่เราคุ้นเคย นั่นคือ php, curl และ simpleXML เพื่อไปดึงข้อมูลมาและแสดงผล</p>
<p><span style="text-decoration: underline;">วิธีการและขั้นตอน</span></p>
<blockquote>
<ol>
<li>ใช้ curl ไปดึงข้อมูลมาจาก Friends Timeline
<p>http://twitter.com/statuses/friends_timeline.xml</li>
<li>นำข้อมูลที่ดึงมาไปยัดเข้าตัวแปร ด้วย simpleXML บน php</li>
<li>นำข้อมูลในตัวแปรมาแสดงบนเว็บ ตามรูปแบบที่เราต้องการ</li>
</ol>
</blockquote>
<p>ตัวอย่าง source-code<br />
<span id="more-584"></span><br />
<iframe src="/x.php" width="100%" height="350"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://chet.printhong.net/201007/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%99%e0%b8%b3%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b9%83%e0%b8%99%e0%b8%97%e0%b8%a7%e0%b8%b4%e0%b8%95%e0%b9%80%e0%b8%95%e0%b8%ad%e0%b8%a3-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การนำข้อความในทวิตเตอร์มาแสดงบนเว็บ(บล็อก)</title>
		<link>http://chet.printhong.net/200911/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%99%e0%b8%b3%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b9%83%e0%b8%99%e0%b8%97%e0%b8%a7%e0%b8%b4%e0%b8%95%e0%b9%80%e0%b8%95%e0%b8%ad%e0%b8%a3/</link>
		<comments>http://chet.printhong.net/200911/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%99%e0%b8%b3%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b9%83%e0%b8%99%e0%b8%97%e0%b8%a7%e0%b8%b4%e0%b8%95%e0%b9%80%e0%b8%95%e0%b8%ad%e0%b8%a3/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 12:10:17 +0000</pubDate>
		<dc:creator>chet</dc:creator>
				<category><![CDATA[สนทนาปัญหาบ้าบอ]]></category>
		<category><![CDATA[เล่าสู่กันฟัง]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://chet.printhong.net/?p=196</guid>
		<description><![CDATA[มีหลายวิธีมากๆ ถ้าเราใช้งานเว็บ CMS ก็จะมีโปรแกรมเสริม(plugins)มาให้เราเลือกใช้งาน แต่ถ้าเราใช้งานเว็บบล็อก หรือมีเว็บของตัวเอง เราก็สามารถใช้บริการวิดเจ็ดของทวิตเตอร์ได้เลยเช่นกัน วิธีการคือ ไปที่เว็บ twitter ที่เปิดให้บริการอยุ่ เลือก Goodies → Widgets → Search widget for My Website แล้วปรับแต่งตามภาพ]]></description>
			<content:encoded><![CDATA[<div id="attachment_198" class="wp-caption alignleft" style="width: 329px"><a href="http://chet.printhong.net/wp-content/uploads/2009/11/tw02.jpg"><img class="size-full wp-image-198  " style="margin: 5px;" title="widget" src="http://chet.printhong.net/wp-content/uploads/2009/11/tw02.jpg" alt="ปรับค่าตามที่ชอบ" width="319" height="240" /></a><p class="wp-caption-text">ปรับค่าตามที่ชอบ</p></div>
<p>มีหลายวิธีมากๆ ถ้าเราใช้งานเว็บ CMS ก็จะมีโปรแกรมเสริม(plugins)มาให้เราเลือกใช้งาน แต่ถ้าเราใช้งานเว็บบล็อก หรือมีเว็บของตัวเอง เราก็สามารถใช้บริการวิดเจ็ดของทวิตเตอร์ได้เลยเช่นกัน</p>
<p>วิธีการคือ ไปที่เว็บ <a href="http://twitter.com/goodies/widget_search" target="_blank">twitter</a> ที่เปิดให้บริการอยุ่ เลือก</p>
<p>Goodies → Widgets → Search widget for My Website</p>
<p>แล้วปรับแต่งตามภาพ</p>
]]></content:encoded>
			<wfw:commentRss>http://chet.printhong.net/200911/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%99%e0%b8%b3%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b9%83%e0%b8%99%e0%b8%97%e0%b8%a7%e0%b8%b4%e0%b8%95%e0%b9%80%e0%b8%95%e0%b8%ad%e0%b8%a3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

