Description Value Slots See Also Examples
new("FDA")
will instatiate an object of class FDA which holds
attributes and methods for useful for accessing the openFDA API
An object of a class FDA.
url
Base url. Default = "https://api.fda.gov/"
.
apikey
String of API key from openFDA API
endpointfront
String of API access point. This will vary by different classess.
For example, the Drug
class will have "drug"
as the endpointfront
value.
endpointback
String of API access point. This will vary by different classess.
For example, the Drug
class will have a variety of options based on the
listSF
. Specifically "event"
may be an option.
searchfield
String of search field provided by open FDA. This will vary by different classess.
https://open.fda.gov/apis/drug/ndc/ for the actual
API description from openFDA. jsonlite
for accessing API.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.