Hi Phil,

I just tried it with cURL and it worked, I'd recommend having it working
with cURL before adding other layers (and sources of issues) such as jQuery
or Ajax.
This is what my command looks like, I also replaced domain and username (in
capital letters in the sample below) to match my test environment:

curl --header "Authorization: GoogleLogin auth=DQAA..." "
https://apps-apis.google.com/a/feeds/emailsettings/2.0/DOMAIN/USERNAME/vacation
"

<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns='http://www.w3.org/2005/Atom' xmlns:apps='
http://schemas.google.com/apps/2006'>
<id>
https://apps-apis.google.com/a/feeds/emailsettings/2.0/DOMAIN/USERNAME/vacation
</id>
<updated>2011-02-17T15:10:58.351Z</updated>
<link rel='self' type='application/atom+xml' href='
https://apps-apis.google.com/a/feeds/emailsettings/2.0/DOMAIN/
USERNAME/vacation'/>
<link rel='edit' type='application/atom+xml' href='
https://apps-apis.google.com/a/feeds/emailsettings/2.0/DOMAIN/
USERNAME/vacation'/>
<apps:property name='message' value='vacation text...'/>
<apps:property name='subject' value='vacation'/>
<apps:property name='enable' value='true'/>
<apps:property name='contactsOnly' value='true'/>
</entry>

Claudio

On Thu, Feb 17, 2011 at 3:04 PM, Phillip Hotchkiss <[email protected]> wrote:

> I am working on trying to retrieve the vacation responder settings for a
> web application I'm working on. According to the API, I should be able to
> make a get request to the following URL to get the vacation responder
> settings:
>
> https://apps-apis.google.com/
> a/feeds/emailsettings/2.0/domain/username/vacation
>
> I have tried doing this both by cURLing the information in PHP and also
> with jquery by doing an ajax call and neither returns any data.
>
> Also, I have set the authorization token before sending the request. Here
> is what my current AJAX/jQuery code looks like:
>
>         xhr = new XMLHttpRequest();
>         $.ajax({
>             beforeSend: function(xhr)
> {xhr.setRequestHeader("Authorization", "GoogleLogin auth=*auth_token*")},
>             url: "
> https://apps-apis.google.com/a/feeds/emailsettings/2.0/domain.com/username/vacation
> ",
>             success: function(data){
>                 alert(data);
>             }
>         });
>
> The domain and usernames have been changed accordingly as well.
>
> Expected output: I'm not sure what the expected output is because I haven't
> been able to succesfully complete a request
>
> Actual results: Nothing is output. I just get an empty alert box.
>
> Any help would be greatly appreciated!
>
> Thanks,
>
> Phil
>
> --
> 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.
>

-- 
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