vibala / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Add support for the Admin SDK #326

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is a new-ish API, so it will probably take a while to get into this 
library, but I wanted to put in the request.

https://developers.google.com/admin-sdk/

Original issue reported on code.google.com by teixe...@broadinstitute.org on 29 May 2013 at 7:57

GoogleCodeExporter commented 9 years ago

Original comment by ianbar...@google.com on 30 May 2013 at 9:45

GoogleCodeExporter commented 9 years ago
Yes, this would be really nice. I started building my own, but I'm stuck with 
"(403) Not Authorized to access this resource/api". I have not found a problem 
yet (I built it with help of contrib/* files). Maybe there is somthing wrong 
with OAuth 2.0. I have to check simple authentication too.

Original comment by aapo.tal...@gmail.com on 31 May 2013 at 1:08

GoogleCodeExporter commented 9 years ago
Ok, it seems that Service Accounts do not work with Admin SDK, but I got it 
working with Web Application Oauth2. I'm implementing a few of these APIs, and 
I can upload the code when ready.

Original comment by aapo.tal...@gmail.com on 31 May 2013 at 3:21

GoogleCodeExporter commented 9 years ago
I started a discussion about my implementation of Google Admin SDK Directory 
Service API here:
https://groups.google.com/forum/#!topic/google-api-php-client/LM-mwmuZe7I

Original comment by aapo.tal...@gmail.com on 5 Jun 2013 at 7:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
At this point Service Accounts do work with the Directory API of the Admin SDK. 
 I found your forum discussion extremely useful as well as 
https://developers.google.com/drive/delegation .  The link is for Drive, but 
the account setup and the code examples are the same (except for the Drive 
specific portions in the code examples).

The part where I got a 403 is in the Google_AssertionCredentials.  Unlike the 
service account example for the prediction api, you have to connect the 
AssertionCredentials to the user in question.  Essentially calling $auth->sub 
in the link above (PHP example).

Original comment by bickerst...@gmail.com on 27 Aug 2013 at 5:57

GoogleCodeExporter commented 9 years ago
This issue tracker is now closing. Development on the Google PHP client library 
moved to GitHub with the release of the 1.0.0-alpha, and now the 1.0 branch has 
reached beta status there will be no further releases of the 0.6 branch of the 
library. 

Please take a look at the latest version on 
https://github.com/google/google-api-php-client

For information on migrating, please take a look at this guide: 
https://developers.google.com/api-client-library/php/guide/migration

For general library support please ask a question on StackOverflow: 
http://stackoverflow.com/questions/tagged/google-api-php-client

If you are looking for support with a specific API, please contact the team 
working with that API via StackOverflow or their preferred support mechanism. 

If your issue still exists with the new version of the library, please raise a 
bug in the GitHub issue tracker with a minimal code sample. 

Thanks!

Original comment by ianbar...@google.com on 22 Jan 2014 at 4:53