Exemple #1
0
<?php 
session_start();
include_once 'config.php';
include_once 'saet.ex.class.php';
header('Content-Type:text/html; charset=utf-8');
$c = new SaeTClient(WB_AKEY, WB_SKEY, $_SESSION['last_key']['oauth_token'], $_SESSION['last_key']['oauth_token_secret']);
$ms = $c->public_timeline(50);
$allid = array();
$i = 0;
?>

<?php 
if (is_array($ms)) {
    foreach ($ms as $item) {
        ?>
<div style="padding:10px;margin:5px;border:1px solid #ccc">
<?php 
        //print_r($item);
        echo $item['id'];
        ?>
<br>
<?php 
        $allid[$i] = $item['id'];
        $i = $i + 1;
        ?>

<?php 
        echo $item['user']['name'];
        ?>
: