|
ExamplesPHP
<?php $blipapi = new BlipApi (); $status = new BlipApi_Status (); $status->id = 8808231; print_r ($blipapi->read ($status)); ?> <?php
$blipapi = new BlipApi ();
$bsphere = new BlipApi_Bliposphere ();
$bsphere->include = array ('user', 'user[avatar]');
$bsphere->limit = 4;
print_r ($blipapi->read ($bsphere));
?><?php $oauth_consumer = new OAuthConsumer (CONSUMER_KEY, CONSUMER_SECRET); $oauth_token = new OAuthToken (TOKEN_KEY, TOKEN_SECRET); $blipapi = new BlipApi ($oauth_consumer, $oauth_token); $dirmsg = new BlipApi_Dirmsg (); $dirmsg->user = 'mysz'; $dirmsg->limit = 10; print_r ($blipapi->read ($dirmsg)); ?> <?php $oauth_consumer = new OAuthConsumer (CONSUMER_KEY, CONSUMER_SECRET); $oauth_token = new OAuthToken (TOKEN_KEY, TOKEN_SECRET); $blipapi = new BlipApi ($oauth_consumer, $oauth_token); $privmsg = new BlipApi_Privmsg (); $privmsg->body = 'jakas tresc'; $privmsg->user = 'mysz'; print_r ($blipapi->create ($privmsg)); ?> <?php $oauth_consumer = new OAuthConsumer (CONSUMER_KEY, CONSUMER_SECRET); $oauth_token = new OAuthToken (TOKEN_KEY, TOKEN_SECRET); $blipapi = new BlipApi ($oauth_consumer, $oauth_token); $status = new BlipApi_Status (); $status->body = 'jakas tresc'; $status->image = '/jakas/sciezka/do/obrazka.jpg'; print_r ($blipapi->create ($status)); ?> <?php $oauth_consumer = new OAuthConsumer (CONSUMER_KEY, CONSUMER_SECRET); $oauth_token = new OAuthToken (TOKEN_KEY, TOKEN_SECRET); $blipapi = new BlipApi ($oauth_consumer, $oauth_token); $bground = new BlipApi_Background (); $bground->image = '/sciezka/do/nowego/obrazka/tla.jpg'; print_r ($blipapi->update ($bground)); ?> <?php
$oauth_consumer = new OAuthConsumer (CONSUMER_KEY, CONSUMER_SECRET);
$oauth_token = new OAuthToken (TOKEN_KEY, TOKEN_SECRET);
$blipapi = new BlipApi ($oauth_consumer, $oauth_token);
$dirmsg = new BlipApi_Dirmsg (array ('user' => 'mysz', 'limit' => 10));
print_r ($blipapi->read ($dirmsg));
?> <?php
$oauth_consumer = new OAuthConsumer (CONSUMER_KEY, CONSUMER_SECRET);
$oauth_token = new OAuthToken (TOKEN_KEY, TOKEN_SECRET);
$blipapi = new BlipApi ($oauth_consumer, $oauth_token);
$action = 'read';
$dirmsg = new BlipApi_Dirmsg (array ('user' => 'mysz', 'limit' => 10));
print_r ($blipapi->execute ($action, $dirmsg));
?> |