Tejapi (version 1.0.1)

Tejapi.rest: Executes Tejapi API calls

Description

Executes Tejapi API calls

Usage

Tejapi.rest(path, http = c("GET", "PUT", "POST", "DELETE"),
  postdata = NULL, ...)

Arguments

path

Path to api resource.

http

Type of http request sent.

postdata

A character or raw vector that is sent in a body.

...

Named values that are interpretted as Tejapi API parameters. Please see https://api.tej.com.tw/documents.html.

Value

Tejapi API response.

Details

Set your api_key with Tejapi.api_key function. For instructions on finding your api key go to https://api.tej.com.tw

See Also

Tejapi.api_key

Examples

Run this code
# NOT RUN {
Tejapidata = Tejapi.rest(path="datasets/TWN/AIND", http="GET")
plot(Tejapidata[,1])
# }

Run the code above in your browser using DataCamp Workspace