List all Google Apps profiles on a PHP site

I am trying to get a list of all Google Apps domain users on a public PHP site (without site visitors who need to log in or do something). I have a basic understanding of what is going to happen, but I cannot fully bring it all together. It may not be as difficult as it seems to me ... right?

Authentication and authorization: I'm sure he needs to use OAuth 2.0 ... but I'm not sure if he needs 2 legs or 3 legs. I have another section of the site that works with ClientLogin, but it will not be included in Google Apps profiles, but only for the user name and surname (I need other profile fields). I installed the API access in the account and I have that part of the things that was configured (I believe).

I found this page that shows how to build a URL request to get all profiles (in any language except PHP, of course), but doesn’t understand how to implement this. http://code.google.com/googleapps/domain/profiles/developers_guide.html

I also tried this example, but it just gives me 401 after entering the credentials. http://gdatatips.blogspot.com/2008/11/2-legged-oauth-in-php.html

I do not know what framework or additions are needed for this. I tried zend, OAuth.php and a whole bunch of other boot files ... but I lose what everyone does all the time.

If someone can help me outlining:

  • What files / framework do I need to download and include as a bootstrap
  • What variables in these files do I need to update with my Google credentials
  • Google Profiles " " PHP

ELI5 (, 5) ... , .

.

+5
1

.

Google OAuth 2.0, (?), - () API Google Apps. :

OAuth Playground . .

+6

All Articles