MakeRequest: Make request via oauth 1.0

Description Usage Arguments See Also Examples

Description

Make a request for a protected resource using credentials resulting from Authorize() or LoadCredentials().

Usage

1
MakeRequest(params, resource, method, request=NULL, noisy=FALSE)

Arguments

params

the parameters of the service and the user, resulting from Authorize() or LoadCredentials()

resource

the URL of the resource you are trying to access. If this is a request in which you would pass request parameters (e.g., <code>?search=abcdefg</code>), do not include those parameters in the resource URL.

method

one of "GET", "POST", "PUT", or "DELETE"

request

any request parameters provided as a named character vector (e.g., c(search="Test", since="yesterday")). may be null.

noisy

binary setting to enable verbosity in handshaking

See Also

Authorize

Examples

1
2
  ## Not run: MakeRequest(params, "http://api.twitter.com/1/account/verify_credentials.json", "GET")
  ## Not run: MakeRequest(params, "http://api.twitter.com/1/statuses/update.json", "POST", request=c(status="#rstats is my hero."))

noahhl/oauth documentation built on May 23, 2019, 9:29 p.m.