viewing grackle generated urls

15 views
Skip to first unread message

Rajinder Yadav

unread,
Nov 25, 2010, 11:38:37 PM11/25/10
to Grackle Development
Hi Davis,

is there a way for me to view the twitter api url that gets constructed
by Grackle?

I would find it beneficial for debugging purposes, I am using a console
app for testing ideas and would like to know how I can view the
generated url that is sent off to twitter, thanks!

--
Kind Regards,
Rajinder Yadav | DevMentor.org | Do Good! ~ Share Freely

GNU/Linux: 2.6.35-22-generic
Kubuntu x86_64 10.10 | KDE 4.5.1
Ruby 1.9.2p0 | Rails 3.0.1

Hayes Davis

unread,
Nov 29, 2010, 11:30:25 PM11/29/10
to grac...@googlegroups.com
The best way to do this is to set the debug mode on the transport. This will print info about each request and response to STDOUT. It'll look something like this:

> client = Grackle::Client.new
> client.transport.debug = true
> client.users.show.hayesdavis?
Sending Request
GET /1/users/show/hayesdavis.json
accept=*/*
user-agent=Grackle/0.1.10
Received Response
vary=Accept-Encoding
        ... headers omitted ...
pragma=no-cache
{"geo_enabled":true, ... body stuff omitted ... "screen_name":"hayesdavis"}


Hayes

Rajinder Yadav

unread,
Nov 30, 2010, 6:12:16 PM11/30/10
to grac...@googlegroups.com
On Mon, Nov 29, 2010 at 11:30 PM, Hayes Davis <ha...@appozite.com> wrote:
> The best way to do this is to set the debug mode on the transport. This will
> print info about each request and response to STDOUT. It'll look something
> like this:
>> client = Grackle::Client.new
>> client.transport.debug = true
>> client.users.show.hayesdavis?
> Sending Request
> GET /1/users/show/hayesdavis.json
> accept=*/*
> user-agent=Grackle/0.1.10
> Received Response
> vary=Accept-Encoding
>         ... headers omitted ...
> pragma=no-cache
> {"geo_enabled":true, ... body stuff omitted ... "screen_name":"hayesdavis"}
>
> Hayes

Thank you Hayes, that is just perfect =)

Reply all
Reply to author
Forward
0 new messages