setApiKey: Set API key.

Description Usage Arguments Details Value Examples

Description

Sets the API key to the value of the argument.

Usage

1
setApiKey(key, f = NULL)

Arguments

key

A valid Wunderground API key

f

A string indicating a text file containing only an API key

Details

If f is not missing, then reads the API key from a file, else sets key to the key parameter. Does not check if key is valid. Please visit <https://www.wunderground.com/weather/api/d/pricing.html> to sign up for a free API key.

Value

The API key

Examples

1
setApiKey('q1w2e3r4t5y6u7i8') # not a valid key

wunderscraper documentation built on May 2, 2019, 12:40 p.m.