source: spip-zone/_plugins_/microblog/feed/twitter_user_timeline.html @ 70415

Last change on this file since 70415 was 70415, checked in by cedric@…, 7 years ago

Cache court sur le RSS twitter

File size: 1.6 KB
Line 
1#CACHE{600}
2[(#HTTP_HEADER{Content-type: text/xml[; charset=(#CHARSET)]})]<?xml version="1.0"[ encoding="(#CHARSET)"]?>
3<rss xmlns:twitter="http://api.twitter.com" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:georss="http://www.georss.org/georss">
4        #SET{screen_name,#ENV{screen_name,''}}
5        [(#GET{screen_name}|non)
6                [(#SET{infos_compte,[(#VAL{account/verify_credentials}|microblog_twitter_api)]})]
7                [(#SET{screen_name,#GET{infos_compte}|table_valeur{screen_name}})]
8        ]
9        [(#SET{url_compte,#VAL{http://twitter.com/}|concat{#GET{screen_name}}})]
10  <channel>
11    <title>Twitter / #GET{screen_name}</title>
12    <link>#GET{url_compte}</link>
13    <atom:link type="application/rss+xml" href="#SELF" rel="self"/>
14    <description>Twitter updates from #GET{screen_name}.</description>
15    <language>en-us</language>
16    <ttl>40</ttl>
17    <BOUCLE_tweets(DATA) {source twitter,#VAL{statuses/user_timeline}|parametre_url{count,40,'&'}|parametre_url{screen_name,#GET{screen_name},'&'}}>
18            <item>
19              <title>[(#VALEUR{user/screen_name}|texte_backend)]: [(#VALEUR{text}|texte_backend)]</title>
20              <description>[(#VALEUR{user/screen_name}|texte_backend)]: [(#VALEUR{text}|texte_backend)]</description>
21              <pubDate>#VALEUR{created_at}</pubDate>
22              <guid>http://twitter.com/#VALEUR{user/screen_name}/statuses/#VALEUR{id_str}</guid>
23              <link>http://twitter.com/#VALEUR{user/screen_name}/statuses/#VALEUR{id_str}</link>
24              <twitter:source>[(#VALEUR{id_str}|texte_backend)]</twitter:source>
25              <twitter:place/>
26            </item>
27    </BOUCLE_tweets>
28  </channel>
29</rss>
Note: See TracBrowser for help on using the repository browser.