Confused about Zend vs google-api-php-client-read-only

59 views
Skip to first unread message

Joe Zobkiw

unread,
Mar 16, 2012, 12:36:56 PM3/16/12
to google-app...@googlegroups.com
Can someone help fill in a few gaps for me?

It would seem as though I should be able to access Groups Settings API using the google-api-php-client but I see enough recent references to Zend that it seems that might be necessary as well. Since there is no Groups Settings example in the SDK (although the apiGroupssettingsService.php has now been added) it's hard to figure out exactly how to call the api.

For example...this just doesn't work for some reason - causing 500 errors:

$client = new apiClient();
... authentication occurs properly etc ...
$service = new apiGroupssettingsService($client);
$groups = $service->groups;
$group = $groups->get('my_gro...@domain.com');
print_r($group);

Also, I see no reference to RetrieveAllGroups and other methods mentioned elsewhere.

Am I just referencing the $service incorrectly?

If Zend *is* required then I have another problem where loadClass fails (500 errors as well)

Very strange...thanks for any assistance!


Claudio Cherubino

unread,
Mar 16, 2012, 1:29:19 PM3/16/12
to google-app...@googlegroups.com
Hi Joe,

The Groups Settings API is one of the recently released APIs that are based JSON-based and it can be used with the new google-api-php-client which doesn't require the Zend framework:


Methods like RetrieveAllGroups do not belong to the Groups Settings API but instead they are part of the Provisioning API, which is XML-based and uses the Zend Framework:


Claudio




--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/09f19L9vUBgJ.
To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Joe Zobkiw

unread,
Mar 16, 2012, 7:51:06 PM3/16/12
to google-app...@googlegroups.com
Thanks Claudio - that helps to point me in the right direction.

<joe>


On Friday, March 16, 2012 1:29:19 PM UTC-4, Claudio Cherubino wrote:
Hi Joe,

The Groups Settings API is one of the recently released APIs that are based JSON-based and it can be used with the new google-api-php-client which doesn't require the Zend framework:


Methods like RetrieveAllGroups do not belong to the Groups Settings API but instead they are part of the Provisioning API, which is XML-based and uses the Zend Framework:


Claudio
On Fri, Mar 16, 2012 at 12:36 PM, Joe Zobkiw  wrote:
Can someone help fill in a few gaps for me?

It would seem as though I should be able to access Groups Settings API using the google-api-php-client but I see enough recent references to Zend that it seems that might be necessary as well. Since there is no Groups Settings example in the SDK (although the apiGroupssettingsService.php has now been added) it's hard to figure out exactly how to call the api.

For example...this just doesn't work for some reason - causing 500 errors:

$client = new apiClient();
... authentication occurs properly etc ...
$service = new apiGroupssettingsService($client);
$groups = $service->groups;
$group = $groups->get('my_group_name@domain.com');
print_r($group);

Also, I see no reference to RetrieveAllGroups and other methods mentioned elsewhere.

Am I just referencing the $service incorrectly?

If Zend *is* required then I have another problem where loadClass fails (500 errors as well)

Very strange...thanks for any assistance!


--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/09f19L9vUBgJ.
To post to this group, send email to google-apps-mgmt-apis@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt-apis+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages