I'm re-posting this question which was unanswered on the old forum:
http://www.google.com/support/forum/p/apps-apis/thread?tid=169e78f776d3e0b5&hl=en

-- QUOTE --
I'm trying to get a list of all users using 2-legged oauth.
I'm following the example here
http://code.google.com/googleapps/marketplace/tutorial_ruby.html#Integrate-OAuth

The example works, however when I tried with the provisioning feed
https://apps-apis.google.com/a/feeds/domain/user/2.0

I get Net::HTTPInternalServerError 500 Internal Server Error

Here is the code:

oauth_consumer = OAuth::Consumer.new(consumer_key, consumer_secret)
access_token = OAuth::AccessToken.new(oauth_consumer)
client = Google::Client.new(access_token, '2.0')

feed = client.get('https://apps-apis.google.com/a/feeds/domain/user/
2.0', {
  'xoauth_requestor_id' => '[email protected]'
})

I'm using the consumer key and secret from the marketplace listing.
(the key looks like this xxxxxx.apps.googleusercontent.com)
-- END QUOTE --

Someone suggested to remove the xoauth_requestor_id. I did and it
still didn't work.I wish the error message is more descriptive.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Apps Domain Information and Management 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-mgmt-apis?hl=en.

Reply via email to