Suffix Every Request

45 views
Skip to first unread message

ethnt

unread,
Oct 14, 2011, 9:03:10 PM10/14/11
to HTTParty Gem
I'd like to suffix every request with a parameter like "?
api_key=123456". Is there a way to do this without adding it manually?

John Nunemaker

unread,
Oct 14, 2011, 9:36:29 PM10/14/11
to httpar...@googlegroups.com
Check out default_params. Search for it in the specs for examples.

On Friday, October 14, 2011 at 9:03 PM, ethnt wrote:

I'd like to suffix every request with a parameter like "?
api_key=123456". Is there a way to do this without adding it manually?

--
You received this message because you are subscribed to the Google Groups "HTTParty Gem" group.
To post to this group, send email to httpar...@googlegroups.com.
To unsubscribe from this group, send email to httparty-gem...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/httparty-gem?hl=en.

ethnt

unread,
Oct 14, 2011, 9:55:16 PM10/14/11
to HTTParty Gem
I'm not sure how I overlooked that... thanks for the quick reply!

On Oct 14, 9:36 pm, John Nunemaker <nunema...@gmail.com> wrote:
>  Check out default_params. Search for it in the specs for examples.
>
>
>
>
>
>
>
> On Friday, October 14, 2011 at 9:03 PM, ethnt wrote:
> > I'd like to suffix every request with a parameter like "?
> > api_key=123456". Is there a way to do this without adding it manually?
>
> > --
> > You received this message because you are subscribed to the Google Groups "HTTParty Gem" group.
> > To post to this group, send email to httpar...@googlegroups.com (mailto:httpar...@googlegroups.com).
> > To unsubscribe from this group, send email to httparty-gem...@googlegroups.com (mailto:httparty-gem...@googlegroups.com).
Reply all
Reply to author
Forward
0 new messages