can't use URL parameters AND request body

33 views
Skip to first unread message

Alex Ullrich

unread,
May 17, 2013, 2:52:49 PM5/17/13
to rest...@googlegroups.com
I'm trying to consume an API that for whatever reason requires their access token to be passed as a querystring parameter (ParameterType.GetOrPost).

I noticed that if I call these two methods (order doesn't matter)

request.AddParameter("access_token", token)
request.AddBody(body)

The body doesn't actually get set on the request.  I can get around it by setting my request's resource to /resource?access_token=token

I'm using version 104.1.0.0

Alex Ullrich

unread,
May 17, 2013, 3:08:08 PM5/17/13
to rest...@googlegroups.com
sorry messed up the first call, its actually request.AddParameter("access_token", token, ParameterType.GetOrPost)
Reply all
Reply to author
Forward
0 new messages