Solved it at last! Nothing more than some careless mistakes. But I
thought I'd just share the solution.
Error caused when retrieveUser($username) returning null and followed
by suspendUser() or restoreUser() call.
This caused error if $get is null:
$get = $service->retrieveUser($login);
$service->suspendUser($login);
This fixed it:
$get = $service->retrieveUser($login);
if($get) {
$service->suspendUser($login);
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---