Location: PHPKode > scripts > Ping.FM Wrapper Class > ping-fm-wrapper-class/examples/verybasic1.php
<?php

/**
 * Danltn | http://danltn.com/
 * MSN: hide@address.com
 * Email: hide@address.com
 * Started: 19/6/2008 16:0 (UK) 
 * Tested: No
 * PHP 4/5: 5
 * No warranty is given to code used
 */


try {
    $wrapper = new PingFM_Wrapper;
    $wrapper->dev_api = 'DEVELOPER_API';
    $wrapper->user_api = 'USER_API';
    if ( $wrapper->act('post', array('post_method' => 'status', 'body' => 'is really bored')) ) echo 'You updated your status!';
}
catch ( exception $e ) {
    echo $e->getMessage();
}

/** Dead simple! **/

?>
Return current item: Ping.FM Wrapper Class