Learn R Programming

crunch (version 1.14.4)

tokenAuth: Add an auth token as a cookie manually

Description

Set the auth token rather than from a Set-Cookie response header. Also modify the user-agent to include the service this is coming from.

Usage

tokenAuth(token, ua = "token")

Arguments

token
character auth token
ua
character optional string to add to the User-Agent request header

Value

Nothing; called for its side effects.