Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/verybasic1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Daniel Neville  >  Ping.FM Wrapper Class  >  examples/verybasic1.php  >  Download  
File: examples/verybasic1.php
Role: Example script
Content type: text/plain
Description: This class shows how you could update your status.
Class: Ping.FM Wrapper Class
Update multiple social networks using Ping.FM
Author: By
Last change:
Date: 6 years ago
Size: 551 bytes
 

Contents

Class file image Download
<?php

/**
 * Danltn | http://danltn.com/
 * MSN: msn@danltn.com
 * Email: daniel@neville.tk
 * 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! **/

?>