From 41f6ccc039633890b42f3a1a4495dfd8c7262da0 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Thu, 21 Apr 2011 17:03:31 +0200 Subject: More works on api --- view/api_timeline_atom.tpl | 21 +++++++++++++++++++++ view/api_timeline_rss.tpl | 23 +++++++++++++++++++++++ view/api_timeline_xml.tpl | 21 +++++++++++++++++++++ view/api_user_xml.tpl | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 111 insertions(+) create mode 100644 view/api_timeline_atom.tpl create mode 100644 view/api_timeline_rss.tpl create mode 100644 view/api_timeline_xml.tpl create mode 100644 view/api_user_xml.tpl (limited to 'view') diff --git a/view/api_timeline_atom.tpl b/view/api_timeline_atom.tpl new file mode 100644 index 000000000..63782ce36 --- /dev/null +++ b/view/api_timeline_atom.tpl @@ -0,0 +1,21 @@ + + + Friendika + $rss.alternate + + Friendika timeline + $rss.language + 40 + +{{ for $statuses as $status }} + + $status.text + $status.text + $status.created_at + $status.url + $status.url + $status.source + +{{ endfor }} + + \ No newline at end of file diff --git a/view/api_timeline_rss.tpl b/view/api_timeline_rss.tpl new file mode 100644 index 000000000..d07ac42ad --- /dev/null +++ b/view/api_timeline_rss.tpl @@ -0,0 +1,23 @@ + + Friendika + tag:friendika:Status + + + $rss.updated + Friendika timeline + {{ for $statuses as $status }} + + $status.text + $status.text + $status.id + $status.created_at + $status.created_at + + + $status.user.name + $status.user.url + + $status.source + + {{ endfor }} + \ No newline at end of file diff --git a/view/api_timeline_xml.tpl b/view/api_timeline_xml.tpl new file mode 100644 index 000000000..85f73064e --- /dev/null +++ b/view/api_timeline_xml.tpl @@ -0,0 +1,21 @@ + + {{ for $statuses as $status }} + + $status.created_at + $status.id + $status.text + $status.source + $status.truncated + $status.url + $status.in_reply_to_status_id + $status.in_reply_to_user_id + $status.favorited + $status.in_reply_to_screen_name + $status.geo + $status.coordinates + $status.place + $status.contributors + {{ inc view/api_user_xml.tpl with $user=$status.user }}{{ endinc }} + + {{ endfor }} + \ No newline at end of file diff --git a/view/api_user_xml.tpl b/view/api_user_xml.tpl new file mode 100644 index 000000000..15517fc42 --- /dev/null +++ b/view/api_user_xml.tpl @@ -0,0 +1,46 @@ + + $user.id + $user.name + $user.screen_name + $user.location + $user.description + $user.profile_image_url + $user.url + $user.protected + $user.followers + $user.profile_background_color + $user.profile_text_color + $user.profile_link_color + $user.profile_sidebar_fill_color + $user.profile_sidebar_border_color + $user.friends_count + $user.created_at + $user.favourites_count + $user.utc_offset + $user.time_zone + $user.profile_background_image_url + $user.profile_background_tile + $user.profile_use_background_image + + $user.geo_enabled + $user.verified + + $user.statuses_count + $user.lang + $user.contributors_enabled + {{ if $user.status }} + $user.status.created_at + $user.status.id + $user.status.text + $user.status.source + $user.status.truncated + $user.status.in_reply_to_status_id + $user.status.in_reply_to_user_id + $user.status.favorited + $user.status.in_reply_to_screen_name + $user.status.geo + $user.status.coordinates + $user.status.place + $user.status.contributors + {{ endif }} + \ No newline at end of file -- cgit v1.2.3