extractContentFromNiapi: Extract Data from the Nature Index API

View source: R/extractContentFromNiapi.R

extractContentFromNiapiR Documentation

Extract Data from the Nature Index API

Description

extractContentFromNiapi is a general purpose utility function called by other functions that retrieves data from specified tables in the Nature Index database over the [The Nature Index Application Programming Interface](https://www8.nina.no/NaturindeksNiCalc/index.html) and returns the raw content as a list.

Usage

extractContentFromNiapi(
  APIUrl = "https://www8.nina.no/NaturindeksNiCalc",
  methodPath = NULL,
  token = NULL,
  ...
)

Arguments

APIUrl

character, API address - including the server address

methodPath

character, method address within the API

token

character, token retrieved from the API using getToken

...

further parameters to content

Value

A list containing the raw content extracted from the API.

Author(s)

Bård Pedersen


NINAnor/NIcalc documentation built on Oct. 26, 2023, 9:37 a.m.