This is my first time doing mobile development with twitter. I'm using Adobe Flash AS3 and PHP script to retrieve my own twitter status into my self made iphone application. However, Im unable to retrieve more than 20 statuses.
PHP:
<?php
header('Content-Type: text/html; charset=utf-8');
$name = $_GET['url'];
$url = 'http://twitter.com/statuses/user_timeline.xml?screen_name=';
$url .= $name;
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_HEADER, 0);
ob_start();
curl_exec ($ch);
curl_close ($ch);
$string = ob_get_contents();
$content = ob_end_clean();
echo $string;
?>
In Flash CS5.5:
private static const USERNAME:String = "twitterusername";
private static const URL:String = "http://myserverhost.com/proxy.php?url=";
private static const REQUEST:String = URL + USERNAME;
urlLoader = new URLLoader();
urlLoader.load(new URLRequest(REQUEST));
urlLoader.addEventListener(Event.COMPLETE, displayInfo);
I have given a read on twitter documentation(http://dev.twitter.com/docs/working-with-timelines) you gave me however Im still quite confused about "How to ask more than 20 statuses at a time". Is there any tutorial/sample code online for reference?