Skip to content

Instantly share code, notes, and snippets.

@kanreisa
Created July 2, 2010 15:06
Show Gist options
  • Save kanreisa/461472 to your computer and use it in GitHub Desktop.
Save kanreisa/461472 to your computer and use it in GitHub Desktop.
<?php
include('./init.php');
if(!$_SESSION['user']) exit('login.');
/* tweet text */
$A[] = 'ブブ';
$A[] = 'ブー';
$A[] = 'ブォォオ';
$A[] = 'ブォ';
$A[] = 'ヴ-';
$A[] = 'ビー';
$A[] = 'う゛ぁ';
$A[] = 'ぶ';
//7(8)
$B[] = 'ゥ';
$B[] = 'ォ';
$B[] = 'ォおォ';
$B[] = 'ブォ';
$B[] = '-ーー';
$B[] = '~う゛ー';
$B[] = 'ぁぁぉおう゛ぁ';
$B[] = 'う゛ぇえ';
$tweet = $A[rand(0,7)].$A[rand(0,7)].$B[rand(0,7)].$B[rand(0,7)].$A[rand(0,7)];
/* OAuth */
$to = new TwitterOAuth($consumer_key, $consumer_secret, $_SESSION['oauth_access_token'], $_SESSION['oauth_access_token_secret']);
/* POST Vuvuzela. */
$content = $to->OAuthRequest('https://twitter.com/statuses/update.xml',
array('status' => $tweet.' #worldcup'), 'POST');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment