mindat_connection {OpenMindat}R Documentation

Initializing Mindat API

Description

Initializing API Call. Setup the base_url, token and format.

Usage

mindat_connection(token, base_url = "https://api.mindat.org",fmt ="json",page_size = 800)

Arguments

token

string. You can apply a token from Mindat.org.

base_url

string.The base url of mindat API, default is "https://api.mindat.org".

fmt

string. The format of the request and response, default is json.

page_size

interger, setting the page size of responsed data from the API server.

Value

No return value. A connection to the Mindat server will be established with your input token cached.

Examples

mindat_connection("9ce67655d74bcd981e937be80dcea9cb",page_size = 1500)

[Package OpenMindat version 1.0.0 Index]