These are all methods of the Services_BitsyBox class. You must first instantiate a class before you can use any of these methods.
$bb = new Services_BitsyBox($ApiKey,$ApiSecret);
Returns all pages for a given site
Calling
array getPages( array $args )Arguments
intttl - Timeout in seconds for the cacheReturn Type
Array of Module Objects (Services_BistyBox_Module)Example
$pages = $bb->getPages( array( 'ttl' => 300 ) );
Returns a single page for a given site
Calling
object getPage( array $args )Arguments
intid - Id of the Page requestingstringkey - KeyId of the Page requestingReturn Type
Module Object (Services_BistyBox_Module)Example
$page = $bb->getPage( array( 'id' => 9 ) );
Returns a list of modules
Calling
array getModules( array $args )Arguments
arraymodules - array of module informationintid - module idstringkey - module keyIdintttl - Cache timeout in secondsReturn Type
Array of Module Object (Services_BistyBox_Module)Example
$modules = $bb->getModules( array( 'modules' => array( array('id' => 9), array('id' => 10 ) ), 'ttl' => 300 ) );
Returns a single module
Calling
object getModule( array $args )Arguments
intid - Id of Modulestringkey - KeyId of the ModuleReturn Type
Module Object (Services_BistyBox_Module)Example
$module = $bb->getModule( array( 'id' => 9 ) );
Returns a single Item from a module
Calling
object getItem( array $args )Arguments
intid - Id of the itemstringkey - KeyId of the itemReturn Type
Item Object (Services_BistyBox_Item)Example
$item = $bb->getItem( array( 'id' => 9 ) );
Returns a list of items
Calling
array getItems( array $args )Arguments
arrayitems - array of item informationintid - Id of itemstringkey - KeyId of itemReturn Type
Item Object (Services_BistyBox_Item)Example
$items = $bb->getItems( array( 'items' => array( array('id' => 9 ) ) ) );
Removes the entire site cache
Calling
dumpCache()Arguments
- None
Return Type
bool (true / false)Example
$bb->dumpCache();
BitsyBox is a hosted content storage platform that offers two products that work in perfect harmony. The first is an easy-to-use web interface that lets site owners edit and update their content. The second is a robust API for developers to quickly access that content from their website or application code.
We've fully documented BitsyBox to make it easy -- so easy in fact, we guarantee you can integrate a new or existing website in just a few minutes. More Support
Check out our library of streaming videos, professionally produced to help guide you through your integration with BitsyBox.
View Screencasts
Isn't everyone these days? Make sure to follow us to stay up-to-date with everything BitsyBox Follow @bitsybox