O código disponibilizado abaixo faz parte do projeto Open Lab da Blue Systems liberado com licença GPL: /* =============================== Blue Systems CMS blueTweet module Update: 26/05/2009 =============================== */ $msg = 'teste 02...

O código disponibilizado abaixo faz parte do projeto Open Lab da Blue Systems liberado com licença GPL: /* =============================== Blue Systems CMS blueTweet module Update: 26/05/2009 =============================== */ $msg = 'teste 02 estou postando pelo Blue Systems CMS'; function bluetweet($msg){ $out="POST http://twitter.com/statuses/update.json HTTP/1.1\r\n" ."Host: twitter.com\r\n" ."Authorization: Basic ".base64_encode ('exemplo:xxxxxxxxxx')."\r\n" ."Content-type: application/x-www-form-urlencoded\r\n" ."Content-length: ".strlen ("status=$msg")."\r\n" ."Connection: Close\r\n\r\n" ."status=$msg"; $fp = fsockopen ('twitter.com', 80); fwrite ($fp, $out); fclose ($fp); } bluetweet($msg);
Seja Membro Gratuítamente

Assine a newsletter para receber em seu email as publicações atualizadas neste blog

Top