using cURL to interact with Google data...

54 views
Skip to first unread message

Gabriel

unread,
Mar 19, 2009, 5:36:41 PM3/19/09
to Google Data Protocol
I have a question relevant to this post:

http://code.google.com/support/bin/answer.py?answer=78451&useful=1&show_useful=1

I am trying to use cURL to grab RSS feeds for the discussion pages at
Google Finance, e.g. this page:

http://finance.google.com/group/google.finance.704586/feed/rss_v2_0_topics.xml

The authentication request seems to work fine and I get a long auth
code in response. But then if I try the command

curl --header "Authorization: GoogleLogin auth=DQAA..." "http://
finance.google.com/group/google.finance.704586/feed/
rss_v2_0_topics.xml"

I get a response that my client does not have permission to get that
URL. How do I get the correct authorization code for this?

Cheers,
Gabriel

Gabriel

unread,
Mar 19, 2009, 6:03:20 PM3/19/09
to Google Data Protocol
Also, in my authentication request I used

-d service=xapi

Not sure if that is the correct service to use.

Cheers,
Gabe

On Mar 19, 2:36 pm, Gabriel <gabriel.mur...@gmail.com> wrote:
> I have a question relevant to this post:
>
> http://code.google.com/support/bin/answer.py?answer=78451&useful=1&sh...
>
> I am trying to use cURL to grab RSS feeds for the discussion pages at
> Google Finance, e.g. this page:
>
> http://finance.google.com/group/google.finance.704586/feed/rss_v2_0_t...

Eric Bidelman

unread,
Mar 21, 2009, 12:29:10 AM3/21/09
to google-he...@googlegroups.com
Hi Gabriel,

Each API service name is listed here:

Btw, there's a better version of that article here:

Eric

Gabriel Murray

unread,
Mar 22, 2009, 4:22:00 PM3/22/09
to google-he...@googlegroups.com
Hi Eric,

Thanks for the help. What service name do you use if it's a discussion
group about a particular service, e.g. a discussion group about Google
Calendar or Google Finance? Is there a service name for all Google
groups?

Cheers,
Gabriel

Eric Bidelman

unread,
Mar 22, 2009, 4:36:27 PM3/22/09
to google-he...@googlegroups.com
To be clear, Google Groups doesn't have a 
Google Data API, so ClientLogin won't work.
I'm not sure why curl is giving you a 403 error.
That feed seems to be public.

I would ask around the Google Finance API group:

Eric

Gabriel Murray

unread,
Mar 24, 2009, 2:03:23 PM3/24/09
to google-he...@googlegroups.com
I posted a message a couple of days ago at the Google Finance
discussion group, but no response. If anyone has the time and
inclination, I'd be curious to know what response you get when you try
something like

> curl http://finance.google.com/group/google.finance.704586/feed/rss_v2_0_topics.xml

Cheers,
Gabe
Reply all
Reply to author
Forward
0 new messages