Exemplo n.º 1
0
}
$twitch_key = NULL;
if (count($argv) > 4) {
    $twitch_key = $argv[4];
}
$alt_game_name = NULL;
if (count($argv) > 5) {
    $alt_game_name = $argv[5];
}
// * * * //
$twitch_streams = twitch_streams_get($game_name, $twitch_key);
$hitbox_streams = hitbox_streams_get(786);
// Workaround for an API bug //
$youtube_streams = youtube_streams_get($game_name, $youtube_key);
$alt_twitch_streams = twitch_streams_get($alt_game_name, $twitch_key);
$beam_streams = beam_streams_get("ludum-dare");
// not sure if $game_name is a + or - //
//	echo "Alt: " . $alt_game_name . "\n";
//	echo "Argv: ";
//	print_r( $argv );
// * * * //
// Special case: if update_time is ever 0, then don't do any database work //
if ($update_time === 0) {
    echo "Twitch:\n";
    print_r($twitch_streams);
    echo "Hitbox:\n";
    print_r($hitbox_streams);
    echo "YouTube:\n";
    print_r($youtube_streams);
    exit(0);
}
Exemplo n.º 2
0
}
$twitch_key = NULL;
if (count($argv) > 4) {
    $twitch_key = $argv[4];
}
$alt_game_name = NULL;
if (count($argv) > 5) {
    $alt_game_name = $argv[5];
}
// * * * //
$twitch_streams = twitch_streams_get($game_name, $twitch_key);
$hitbox_streams = hitbox_streams_get(786);
// Workaround for an API bug //
$youtube_streams = youtube_streams_get($game_name, $youtube_key);
$alt_twitch_streams = twitch_streams_get($alt_game_name, $twitch_key);
$beam_streams = beam_streams_get(83453);
// not sure if $game_name is a + or - //
//	echo "Alt: " . $alt_game_name . "\n";
//	echo "Argv: ";
//	print_r( $argv );
// * * * //
// Special case: if update_time is ever 0, then don't do any database work //
if ($update_time === 0) {
    echo "Twitch:\n";
    print_r($twitch_streams);
    echo "Hitbox:\n";
    print_r($hitbox_streams);
    echo "YouTube:\n";
    print_r($youtube_streams);
    exit(0);
}