httr (version 0.3)

new_token: Generate and initialise new token.

Description

This is useful if you've created your own Token subclass - it initialises the token object in a standard way.

Usage

new_token(token, endpoint, app, params = list(),
  cache = getOption("httr_oauth_cache"))

Arguments

params
list of params
endpoint
An OAuth endpoint, created by oauth_endpoint
app
An OAuth consumer application, created by oauth_app
cache
A logical value or a string. TRUE means to cache using the default cache file .oauth-httr, FALSE means don't cache, and NA means to guess using some sensible heuristics. A string mean use the specified p