check_JSON: Check JSON Object

Description Usage Arguments Details Value

View source: R/get-token.R

Description

check_JSON Checks to make sure JSON object isn't an error

Usage

1
check_JSON(jsonObject, request, keyToUse, secretToUse, tokenToUse)

Arguments

request

the returned request code

keyToUse

aWhere API key to use.

secretToUse

aWhere API secret to use.

tokenToUse

aWhere API token to use.

JSON

object returned from aWhere API

Details

Checks that aWhere API didn't return an error code and that the token used in query hasn't expired

Value

boolean for whether another query should be made


aWhereAPI/aWhere-R-Library documentation built on Nov. 5, 2021, 3:35 a.m.