Description Usage Arguments Value
Connect to the AmCAT API and requests a temporary (24h) authentication token that will be stored in the output The host should be known in the ~/.amcatauth file, you can use amcat.save.password to add a password to this file
1 2 3 4 5 6 7 | amcat.connect(
host,
token = NULL,
disable_ipv6 = TRUE,
ssl.verifypeer = FALSE,
passwordfile = "~/.amcatauth"
)
|
host |
the hostname, e.g. http://amcat.vu.nl or http://localhost:8000 |
token |
an existing token to authenticate with. If given, username and password are not used and the token is not tested |
passwordfile |
optionally, specify a different password file |
disable_ipv6. |
If True, only use ipv4 resolving (faster if ipv6 causes timeout). Defaults to true, but this may change in the future. |
A list with authentication information that is used by the other functions in this package
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.