New required configuration value:
$GLOBALS['ogoConfig']['NumberPrefix'] = 'OGo';

Change the value of this is you have altered the value of the Number prefix via defaults.  The code needs to know this so we can strip it from then number to produce a short ids for the team as the team objects do not contain an id value - and you have to use the id value when calling the access methods.
http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=844

New method: OGoTeam::getShortId()
New method: OGoManager::setPermission($_obj, $_ent, $_perm = '')

To set contact 10100 to read only for object 26850
-----------------------------------------------------
$server = new OGoServer('*************', '/RPC2', 80);
// Set you user credentials - username, password
$server->login('************', '***********');
// Create A Task Manager Object
$contactManager = $server->getPersonManager();
$contact = $contactManager->getById(10100);
$contactManager->setPermission($contact, array(26850), 'r');

_obj is an enterprise or contact object.
_ent is an array of object ids, either accounts or teams.
_perm can be "", "r" or "rw"

_obj must be an OGoEnterprise or OGoPerson object or else this method silently does nothing.

You can also specify an $_ent as null, like -
$contactManager->setPermission($contact, null, '');

This will apply the specified permissions to the object for all of the teams the current user is a contact of.
