Closed GoogleCodeExporter closed 9 years ago
Hi there,
The scope value needs to be passed in as part of the http request post body.
Once you have created an OAuthRequest object, you call GetResource and can pass
a
NameValueCollection at this point which should contain the scope name and
value. An
example for FireEagle is below. Where lat and long is passed this is where
scope
should be passed.
// Update the user's location
var request = OAuthRequest.Create(
new Uri("https://fireeagle.yahooapis.com/api/0.1/update"),
FireEagle.PostService,
context.Session["request_token"] as IToken,
context.Session["access_token"] as IToken);
// Send the location latitude and longitude with the request
OAuthResponse response = request.GetResource(
new NameValueCollection()
{
{ "lat",
location.Point.Latitude.ToString(CultureInfo.InvariantCulture) },
{ "lon",
location.Point.Longitude.ToString(CultureInfo.InvariantCulture) }
});
Hope this helps,
Thanks for using our library.
Chris
Original comment by chris.s....@gmail.com
on 19 Nov 2008 at 1:06
Original issue reported on code.google.com by
gbar...@gmail.com
on 17 Nov 2008 at 5:52