Twitter

OAuth for PHP Twitter Apps

Twitter nach Text durchsuchen & den Leuten antworten

<?php

$searchtext == "Was suche ich";
$tag = "Deppenantwort";

$url = "http://search.twitter.com/search.atom?q=".urlencode($searchtext);

$data = simplexml_load_file($url);

foreach ($data->entry as $value){
	$from_name = $value->author->uri;
	$from_name = str_replace ("http://twitter.com/", "", $from_name);
    	$message = "@$from_name Das stimmt nicht. #".$tag;

		require_once( 'mytwitter.php' );
		$twitter =  new MyTwitter('kuskus', '**********');
 		$result = $twitter->updateStatus($message);
}
?>
 
Nach oben
twitter.txt · Zuletzt geändert: 2024/02/29 13:36 von 127.0.0.1
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0
DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp   Dogecoin Donations Accepted Here    DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp  DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp