A function to assign or re-assign the API key. Register for an API key on the Guardian Open Platform site.
guardianapi will look for the
environmental variable when the package is loaded. If found the key is stored
in the session option
gu.API.key. This function can be used to set the key
for a single session. To avoid having to use this function, use the .Renviron
file to store you key as
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.