Problem Creating a Filter User Google API for Gmail

30 views
Skip to first unread message

Demolishun

unread,
Nov 23, 2011, 5:03:19 PM11/23/11
to google-app...@googlegroups.com
I am using the API documented here: http://code.google.com/googleapps/domain/email_settings/developers_guide_protocol.html#GA_email_filter_main

I have an app setup right now that uses the oauth to retrieve information from a test google account.  The problem I am having now is testing out adding a filter.  I am using the OAuth Playground: http://googlecodesamples.com/oauth_playground/index.php

I added this to the Scope: https://apps-apis.google.com/a/feeds/emailsettings/2.0/  in the playground.

Then I do the token authorizing for my domain to get the proper tokens.  All of that works.  Then I try this to test adding a filter:
I put this url in the Execute field: https://apps-apis.google.com/a/feeds/emailsettings/2.0/gmail.com/demolishun.test1/filter
I put this in the 'enter post data' popup:
<?xml version="1.0" encoding="utf-8"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:apps="http://schemas.google.com/apps/2006">
    <apps:property name="from" value="somea...@gmail.com" />
    <apps:property name="hasTheWord" value="project proposal" />
    <apps:property name="shouldMarkAsRead" value="true" />
</atom:entry>

Everytime I try executing I get this response:
HTTP/1.1 403 Invalid domain.

Everything I have read seems to indicate this should work.

Gunjan Sharma

unread,
Nov 24, 2011, 12:31:16 AM11/24/11
to google-app...@googlegroups.com
Hello Demolishun

The Email Settings API is only available for Google Apps for Business, Education, Government, and ISPs customers. It will never work for gmail.com accounts. Refer this part of the document.

Thank You
Gunjan Sharma
Reply all
Reply to author
Forward
0 new messages