getTwitterData($command) {
global $twitter;
switch ($command){
case 'timeline':
{ $messages=$twitter->getHomeTimeline('xml');
return call_timeline($messages); }
break;
case 'mentions':
{ $messages=$twitter->getMentions('xml');
return call_timeline($messages); }
break;
case 'direct':
{$messages=$twitter->getMessages('xml');
return call_direct($messages); }
break;
}
}