# JavaScript

The latest version of the SDK is published on <https://github.com/snapodds/sdk-js/releases> and contains a web-component for rendering the Snapscreen UI and the necessary initialization API.

The JavaScript source code, for reference, is available at <https://github.com/snapodds/sdk-js>. To stay informed about the latest updates and improvements, we recommend to watch this repository <https://github.com/snapodds/sdk-js/releases> on GitHub.

The SDK can be integrated in:

* Browsers that support [Custom Elements](https://caniuse.com/custom-elementsv1)
* Browsers that support [CSS Variables](https://caniuse.com/css-variables)
* Browsers that support [Promises](https://caniuse.com/promises)

A sample integration of the SDK can be found at <https://github.com/clipshare/clipshare-sdk-js-sample>.

When integrating the SDK please make sure to follow our Integration Guide for a great customer experience.

{% hint style="info" %}
**Requirement:**

A license key is required to use our API. You can obtain a license by contacting us at  <hello@snapodds.com>.

The following license keys can be used for **trial purposes only**:

Client ID: `u9jYT9g1q6gTxY8i`

Client Secret: `RMkiJPYCipP5bbG4YbtqzpdYne1b0hPSDItvq3YV`
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.snapodds.com/clipshare-sdk-docs/web-sdk/javascript.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
