2010-05-26から1日間の記事一覧

PHPでTwitterのPublic Timeline上のつぶやき(20件分)を表示する

Objective-C版のオマケでPHP版も書いてみた。HTTP 拡張モジュールを使っているので、事前にpecl-httpをインストールしておく必要があります。(Dag RPM Reposiotryを有効にしてyumでインストールしています) $ sudo yum install php-pecl-httpざっくり書くと…

Objective-CでTwitterのPublic Timeline上のつぶやき(20件分)を表示する

とりあえず試してみたかっただけなので、エラー処理とか省いてます。 #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSURL* url; NSXMLDocument* document; NSArray* nodes; url = [N</foundation/foundation.h>…