Sorry, no idea. I've been developing with the API for the past few days, but only using content and users.
Did you had a browse of http://pubsvn.ez.no/doxygen/4.1/html/ yet?
If you need basic information to get started at all: There are two ways to run the PHP you make yourself: either as module of an extension, or using the Command Line Interface using bin/php/ezexec.php
Please ask should you need any more information.
Best wishes, Rainer