Certain sportsbooks can only be linked on web via the SharpSports browser extension. Read the sdk support section for more details.
The extension download experience will be managed via the SharpSports UI. By following the instructions below, your customers will be prompted to download the extension where applicable.
First, generate an extension authentication token in your backend. The authentication token can be re-used and is
the same as those generated for the mobile packages if you are integrating on multiple platforms.
Use the auth tokens endpoint.
Add the Sharpsports Extension Script to the root
index.html of your page to ensure that it is loaded properly.
<script src='https://d1vhnbpkpweicq.cloudfront.net/extension-cdn.js' internalId = "internal-id" publicKey = "public-api-key" extensionAuthToken = "extension-auth-token"></script>
Utilize the 🔄 betSync Context endpoint with the
extensionAuthToken generated in the previous step.
The version of the SharpSports extension downloaded in the bettor's browser can be accessed at:
Note: even if there is no extension version, include this value.
In the case a bettor has an out of date extension, that information will be included in the request response:
You will also recieve an
extensionDownloadUrl where the user can download or update the extension if you want to prompt them to do so.