🔗 Linking Accounts

1. Choose Your Frontend Implementation Path

Your backend implementation ( 🪝 Handling Webhooks) can remain the same regardless of frontend implementation path, however, SharpSports offers 🔌 SDKs that are dependent on the frontend platform you are developing for.

Mobile Apps

SharpSports offers SDKs for the following platforms:

Each SDK includes a method for the necessary frontend implementation points. Follow the setup guide linked above for the relevant package.

Desktop Web

Rather than methods, you can use the relevant API calls for linking an account on a web browser. SharpSports also offers a 🖥️ web browser extension SDK which offers more integration options for bettors. See the SDK Coverage section for more details.

2. Create A Link Account Button

Host Your Own Linking Button

  1. Use the 🔄 betSync Context API call or Method (if using a mobile SDK) to generate a 'context id' (cid).
  2. Append the cid to the relevant URL structure. You can then route the bettor to the url on whatever platform you'd like. We recommend a popup or full page redirect on web, and a webview on mobile.

Standard Link Account Button

ui.sharpsports.io/link/<cid>

This will take the bettor to the standard link account flow where they can choose their region and book before linking.

Button for Each Book

ui.sharpsports.io/link/<cid>/region/<bookRegionId>/login

Use this structure if you'd like to host a button for each book / region option rather than having them select their choice in the SharpSports ui.

Use the 📜 bookRegions List call to fetch the relevant 🌎 BookRegion ID. You can filter by region, book and status.

🚧

Make sure to filter by status=active to avoid sending bettors to an invalid link.

Redirect URL

When directing users to the relevant url via a full page redirect, you'll want to use the redirectURL parameter, to specify where they should be routed once the linking process has been completed in the SharpSports UI.

Pre-Built Link Button

Use our pre-built package for a quick and easy integration.

SharpSports hosts the UI which enables linking and managing connected sportsbook accounts for your customers. Use the html snippet to the right to implement our booklink popup on a web browser.

Web Browser Modal Example (html)

<div id="SSLink" style="margin-left:25px;"></div>

<script src="https://d388bvybj12fcd.cloudfront.net/button.js"

token = "public_API_key"
internalId = "your_internal_id"
extensionAuthToken = "your_extension_auth_token" //optional if integrating the sharpsports browser extension

buttonText='Link Sportsbook'
padding='15px 32px'
background-color='#4CAF50'
border='none'
color='white'
text-align='center'
text-decoration='none'
display='inline-block'
font-size='20px'
border-radius='8px'
font-family='Verdana, Geneva, sans-serif'>
</script>