The snippets must be inside the HTML
<pre><code>...</code></pre> (code) or
<pre><samp>...</samp></pre> (output) tags.
Also, as in the rest of the libraries, the HTML
<samp> tags must include the
language-NAME class, as indicated on the getting-started/quickstart#snippet-preparation page.
The library should be included between the HTML
</head> tags and it must contain the
defer and the
The library can be also included just before the HTML closing
</body> tag, where it does not need those attributes.
To run the library include the following code after the installation tag.
The API key can also be provided through the
options object to the
If the library is placed at the end of the HTML
<body> element, include the following code after the installation tag.
Function that accepts as single argument an object with configuration parameters. These parameters affect all calls to the
apiKey: The API key to use for all calls to the
Function that accepts as single argument an object with configuration parameters. These parameters only affect this call to the
apiKey: The API key to use in this specific call.
If you do not provide an API key to the
setup function, you must provide it to the