getToken: Get the API token

Description Usage Arguments Details Value Author(s) Examples

View source: R/token.R

Description

API wrapper to interact with microclim.org.

Usage

1
getToken(apikey, apisec, url_endpoint)

Arguments

apikey

API Key

apisec

API Secret

url_endpoint

Microclim Authentication endpoint

Details

Token is 167 characters in length, it has the user id encoded as part of it

Value

API token (valid for 2 hours)

Author(s)

Aji John

Examples

1
2
3
4
## Not run: 
mtoken = getToken('07d4d584c04941a25e291feb8881c685','9ef6bbb24a855fbb765f3890e05592f4','localhost:3000/')

## End(Not run)

trenchproject/microclimRapi documentation built on April 26, 2021, 1:09 p.m.