<?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>user_timeline &#8211; alperdereli.com</title>
	<atom:link href="https://www.alperdereli.com/etiket/user_timeline/feed" rel="self" type="application/rss+xml" />
	<link>https://www.alperdereli.com</link>
	<description></description>
	<lastBuildDate>Wed, 02 Dec 2009 08:09:04 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.alperdereli.com/wp-content/uploads/2013/11/ad_logo-150x150.png</url>
	<title>user_timeline &#8211; alperdereli.com</title>
	<link>https://www.alperdereli.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>ASP ile Twitter İşlemleri 2</title>
		<link>https://www.alperdereli.com/asp-ile-twitter-islemleri-2</link>
					<comments>https://www.alperdereli.com/asp-ile-twitter-islemleri-2#comments</comments>
		
		<dc:creator><![CDATA[Alper Dereli]]></dc:creator>
		<pubDate>Tue, 22 Sep 2009 19:12:17 +0000</pubDate>
				<category><![CDATA[ASP]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twitter api]]></category>
		<category><![CDATA[user_timeline]]></category>
		<category><![CDATA[xmldom]]></category>
		<guid isPermaLink="false">http://www.alperdereli.com/?p=32</guid>

					<description><![CDATA[ASP ile bir kişinin Twitter'da yazdığı son 5 yazıyı almak.]]></description>
										<content:encoded><![CDATA[<p>Twitter ile ilgili <a href="http://www.alperdereli.com/index.php/asp-ile-twitter-islemleri-1">ilk yazı</a>nın konusu Twitter&#8217;daki takip ettiğimiz kişi sayısını bulmaktı. Bu yazıda ise bir kişinin yazdığı son 5 yazının nasıl alındığını göreceğiz.</p>
<p>Bu örnekte ilkinden farklı olarak fazladan iki fonksiyon kullanmam gerekti. İlk fonksiyon alacağımız tarih değerlerini anlaşılır hale getirmek için, ikinci fonksiyon ise statünün içinde bulunan linkleri tıklanabilir hale getirmek için kullanılıyor.<br />
<span id="more-32"></span></p>
<pre lang="asp">
<%
Function TarihCevir(tarih)
	TarihDizi = Split(tarih," ")
	TarihCevir = TarihDizi(2) &#038; " " &#038; TarihDizi(1) &#038; " " &#038; TarihDizi(5) &#038; " " &#038; TarihDizi(3)
End Function

Function LinkYap(metin)
	yer1 = Instr(metin,"http://")
	If yer1 > 0 Then
		yer2 = Instr(yer1,metin," ")
		If yer2 = 0 Then yer2 = Len(metin)+1
		link = Mid(metin,yer1,yer2-yer1)
		LinkYap = Replace(metin,link,"<a href="&#038;link&#038;">"&link&"</a>")
	Else
		LinkYap = metin
	End If
End Function
%>
</pre>
<p>Formdan gelen kişi adı değeri varsa XMLDOM nesnemizi oluşturup verileri çekiyoruz. Bu işlem sırasında yine ilk örnekteki gibi <strong>SelectSingleNode</strong> kullanıyoruz ve kişinin yazdığı statüleri, bunları nereden ve ne zaman yazdığı bilgilerini çekiyoruz.</p>
<pre lang="asp">
<%
If t <> "" Then
	Set objXML = Server.CreateObject("Microsoft.XMLDOM")   
	objXML.async = false
	objXML.setProperty "ServerHTTPRequest", true
	xmlFile = "http://twitter.com/statuses/user_timeline.xml?screen_name="&t&"&count=5"
	objXML.Load xmlFile
	Set objItems = objXML.getElementsByTagName("status")
	TwitSayisi = Int(objItems.Length)
	If TwitSayisi > 0 Then
%>
<table border="0" cellpadding="5" cellspacing="0" class="twitter">
<tr>
	<th style="width:250px;">Twit</th>
	<th style="width:100px;">Kaynak</th>
	<th style="width:150px; text-align:right">Tarih</th>
</tr>
<%
		i = 1
		For Each objItem in objItems
			text = objItem.selectSingleNode("text").Text
			kaynak = objItem.selectSingleNode("source").Text
			tarih = objItem.selectSingleNode("created_at").Text
%>
<tr <%If i mod 2 = 0 Then%> style="background:#eee;"<%End If%>>
	<td><%=LinkYap(text)%></td>
	<td><%=kaynak%></td>
	<td align="right"><%=TarihCevir(tarih)%></td>
</tr>
<%
			i = i + 1
		Next
%>
</table>
	<% End If %>
<% End If %>
</pre>
<p>Hazırlamış olduğum uygulamayı <a href="http://www.web-tasarim.net/alperdereli/twitter-islemleri/twitter2.asp?t=alperdereli" target="_blank" rel="nofollow noopener">bu linkten</a> görebilir veya <a href="http://www.alperdereli.com/wp-content/uploads/2009/09/twitter2.rar">bu linki</a> kullanarak indirebilirsiniz.</p>
<p>Bir sonraki yazının konusu ASP ile Twitter durumunu güncellemek olacak.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.alperdereli.com/asp-ile-twitter-islemleri-2/feed</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
	</channel>
</rss>
