Difference between revisions of "PlazesPHP"

From rukapedia
Jump to: navigation, search
 
Line 1: Line 1:
PlazesPHP is an experimental PHP class that provides methods for interacting with Plazes.com.
+
PlazesPHP is an experimental PHP class that provides methods for interacting with Plazes.com.  As it uses the new object model introduced with PHP version 5, PHP5 is a prerequisite.
  
 
==Download Source Code==
 
==Download Source Code==
Line 10: Line 10:
  
 
<code>http://svn.reinvented.net/Plazes/PHP/PlazesPHP</code>
 
<code>http://svn.reinvented.net/Plazes/PHP/PlazesPHP</code>
 +
 +
==Sample Usage==
 +
 +
This example will connect to Plazes.com and retrieve a list of currently signed-on buddies as an array, and then dump the array.
 +
 +
<pre>
 +
require "Plazes.php";
 +
 +
$plaze = new Plazes('username','password','developerkey');
 +
$plaze->Launch();
 +
$plaze->Update();
 +
$plaze->Buddies();
 +
 +
print_r ($plaze->mybuddies);
 +
</pre>

Revision as of 18:11, 6 February 2006

PlazesPHP is an experimental PHP class that provides methods for interacting with Plazes.com. As it uses the new object model introduced with PHP version 5, PHP5 is a prerequisite.

Download Source Code

You can browse the source code from a browser, or grab the latest version of the source code using Subversion at:

svn://svn.reinvented.net/Plazes/PHP/PlazesPHP

or

http://svn.reinvented.net/Plazes/PHP/PlazesPHP

Sample Usage

This example will connect to Plazes.com and retrieve a list of currently signed-on buddies as an array, and then dump the array.

require "Plazes.php";

$plaze = new Plazes('username','password','developerkey');
$plaze->Launch();
$plaze->Update();
$plaze->Buddies();

print_r ($plaze->mybuddies);