LoginSignup
11
10

More than 5 years have passed since last update.

Twitterクライアント作るよ(進捗)

Last updated at Posted at 2014-03-23

あらすじ

なんかTLっぽいものをver_dumpすることに成功

現状

TL整形したい

目標

ブラウザで動くUserStream対応クライアント!

ざっくり手順

  1. htmlでざっくり見た目を作る
  2. TL表示、ツイート送信などの関数をjQueryで作る
  3. Ajax+TwistOAuthでTLをリアルタイム更新できるようにする

0. atpagesのアカウントを作る

作りました。
ぼにょつい

1. 見た目を決める

シンプルなのが好きなのでシンプルに
YUIのpureを使います
galatwiとかtwicliとかに近い感じになったけどまあよい
bonyotwi
あっ、送信ボタン無いや

2. TL表示

認証はサンプルを丸写し

printTL
function printTL($TwistOAuth){
  $homejson = $TwistOAuth->getAuto('statuses/home_timeline');
  $home = json_decode($homejson, true);
  foreach($home as $key => $status)
    h('<p>'.$status['text'].'</p>');
}

動かない

11
10
6

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
10