Basic implementation to access User, Project, Work in Progress and Collection data
See http://be.net/dev for more information and documentation.
-
Please register for an application ID + key first: http://be.net/dev/register
-
Usage.
require_once( './lib/Be/Api.php' ); $api = new Be_Api( $api_id, $api_key ); // User data $api->getUser( 'bryan' ); // User's list of projects $api->getUserProjects( 'bryan' ); // User's work in progress $api->getUserWips( 'cfaydi' ); // Project data $api->getProject( 2812719 ); // Project's comments $api->getProjectComments( 2812719 ); // Featured project list $api->searchProjects( array() ); // Search for motorcycles $api->searchProjects( array( 'q' => 'motorcycles' ) );
- Requires PHP 5.2+
- PHP cURL module