MightKamioka / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

GoogleMailSettingsService returing 403 Forbidden for everything (using 2.1.0.0) #628

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.create GoogleMailSettingsService
2.setUserCredentials(email,pass)
3.try to request forwarding settings

What is the expected output? What do you see instead?
expected return of Forwarding information, get 403 forbidden instead.

Please use labels and text to provide additional information.

mailService = new GoogleMailSettingsService("domain", "myappname");
mailService.setUserCredentials("admin@domain.com","password");
var test = mailService.RetrieveForwarding("admin");

Produces a 403 Forbidden. There is an AppsService also present in this 
application, I don't know if that would cause any sort of confliction (they use 
the same auth credentials) and the appservice works wonderfully. I can't figure 
out why this is failing. This is being used on a Gapps Domain on provisioned 
accounts.

Original issue reported on code.google.com by dal...@lollaskates.dyndns.org on 27 Sep 2012 at 7:14

GoogleCodeExporter commented 8 years ago
typo, the first line would be:

mailService = new GoogleMailSettingsService("domain.com", "myappname");

Original comment by dal...@lollaskates.dyndns.org on 27 Sep 2012 at 7:16

GoogleCodeExporter commented 8 years ago
Does the same request work if you use curl or any other tool to send raw HTTP 
requests? Fiddler can also be useful to inspect the requests and generate new 
ones to compare with.

Original comment by ccherub...@google.com on 27 Sep 2012 at 7:18

GoogleCodeExporter commented 8 years ago
Checked out the requests with Fiddler, it looks like it's responding with 
'Domain cannot use API'. That's odd. Why would that be?

Original comment by dal...@lollaskates.dyndns.org on 27 Sep 2012 at 8:17

GoogleCodeExporter commented 8 years ago
By the way, this utility is being developed on a free/standard Google Apps (the 
limit 10 user) test environment. Is there a restriction on the email API 
because its not our Business Gapps domain? The only other time I've seen 
'Domain cannot use API' was when "Use provisioning API" is unchecked.

Yeah the more I think about it I bet it's a restriction of Free/Standard Gapps.

Original comment by dal...@lollaskates.dyndns.org on 27 Sep 2012 at 8:24

GoogleCodeExporter commented 8 years ago
Confirmed. Upgraded to Business trial for 30 days and resent the query and it 
was successful. The restrictions of API should be documented clearly somewhere, 
Ive been up and down the documentation and saw no hint of Free/Business 
restrictions with email api.

Thanks for your time!

Original comment by ad...@lollaskates.dyndns.org on 27 Sep 2012 at 8:32

GoogleCodeExporter commented 8 years ago

Original comment by ccherub...@google.com on 27 Sep 2012 at 9:20