qcri_get_domains {polyglotr} | R Documentation |
QCRI Get Domains
Description
This function retrieves the supported domains from the QCRI Multiterm API.
Usage
qcri_get_domains(api_key = qcri_api_key())
Arguments
api_key |
The API key associated with the user account being used. If not provided, the function will attempt to retrieve it from the QCRI_API_KEY environment variable. |
Value
A list with keys:
-
success
: Boolean indicating whether the request succeeded. -
domains
: Array of supported domains, such as news, tedtalks etc. Only present if success is true. -
error
: Error message in case success is false.
Examples
## Not run:
qcri_get_domains(api_key = "YourApiKey")
qcri_get_domains()
## End(Not run)
[Package polyglotr version 1.5.1 Index]