Learn R Programming

polyglotr (version 1.5.2)

qcri_get_domains: QCRI Get Domains

Description

This function retrieves the supported domains from the QCRI Multiterm API.

Usage

qcri_get_domains(api_key = qcri_api_key())

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.

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.

Examples

Run this code
if (FALSE) {
qcri_get_domains(api_key = "YourApiKey")
qcri_get_domains()
}

Run the code above in your browser using DataLab