diff options
author | re4k <re4k@re4k.info> | 2013-03-23 22:07:25 +0900 |
---|---|---|
committer | re4k <re4k@re4k.info> | 2013-03-23 22:07:25 +0900 |
commit | c40c306bac93950ff83e65d05eede0e5cf54edc3 (patch) | |
tree | e3022aa78f0db7359258cd56eb23fb4b1f432263 /app/views/main | |
parent | 80eca202c9ae3b3a6098c1654a530b1cd46326cf (diff) | |
download | aclog-c40c306bac93950ff83e65d05eede0e5cf54edc3.tar.gz |
Implement JSON API
Diffstat (limited to 'app/views/main')
-rw-r--r-- | app/views/main/index.html.haml | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/app/views/main/index.html.haml b/app/views/main/index.html.haml index dfebde1..6580d77 100644 --- a/app/views/main/index.html.haml +++ b/app/views/main/index.html.haml @@ -7,8 +7,6 @@ %p %strong まだ開発途中段階のものです。うごかなかったらごめんね %p - Read/Write 要求するけど今のところ UserStreams しか使ってないです。こんど Favstar みたいにページ内から Fav/RT できるようにしたいなあと… -%p %strong 動作のテスト中ですので、途中で登録をうちきったりあまりにふぁぼられ・ふぁぼりが多いユーザーの登録を削除する可能性もあります。 %p 登録ユーザーだったら一番下に統計(?)が表示されてるんじゃないですかね @@ -21,11 +19,14 @@ recent(最新3日のbest): = link_to "/cat/recent", "/cat/recent" %div - timeline(Favstar の Recent、ただ0Fav0RTも含む): + timeline(Favstar の Recent): = link_to "/cat/timeline", "/cat/timeline" %div + timeline(ユーザータイムライン): + = link_to "/cat/timeline/all", "/cat/timeline/all" + %div discovery: - = link_to "/cat/my", "/cat/my" + = link_to "/cat/discovered(/{favorite|retweet})", "/cat/discovered" %div %div 全体のbest: @@ -36,7 +37,26 @@ %div URL 変えちゃうかもしれないです %div - API つくりたいですねハイ + API っていえるのかな…? + %div + %p + \/i/show.json?id=[tweet_id] + %p + \/users/{best|recent|timeline|discovered}.json + %p + screen_name + %p + user_id + %p + count + %p + include_user=true|false ← fav/RTしたユーザーを取得するか(false で ID のみ + %p + tweets={*tweet*|all} ← /users/timeline + %p + tweets={favorite|retweet|*all*} ← discovered + %p + page %div = link_to "@cat", "https://twitter.com/cat" |