# Integration

Sportsbook can be implemented by loading a Javascript file provided by cmswager and including a container div in client webpage.

#### Example

```html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">

</head>
  <body>
    <div id="appcontent"></div>
</body>
<script src="https://testsportsbook.cmswager.com/js/sportsbook.js"></script>
<script>
(function() {      
    cmsSportbook.startSportbook("desktop","guest","en-US","clientKey","defaultpage");
})();
</script>
</html>
```

Important! The container div must have the "id" property setted to "appcontent" mandotory. The CmsWager sportsbook will be generated inside the container div.

The method "startSportbook" accept 4 parameters:

<table><thead><tr><th width="143">Name</th><th width="97">Type</th><th>Description</th></tr></thead><tbody><tr><td>platform</td><td>string</td><td>Sportsbook content view type. It can be "desktop", "mobile" or "tablet"</td></tr><tr><td>token</td><td>string</td><td>User token obtained from user authentication (see Cmswager api section).<br>Use "guest" for unauthenticated users</td></tr><tr><td>culture</td><td>string</td><td>Display culture language. For available languages please see the specific section.</td></tr><tr><td>clientKey</td><td>string</td><td>Client key provided by CmsWager</td></tr><tr><td>defaultpage</td><td>string</td><td>Starting page. It can be "sport", "sportmenu" or "live".</td></tr></tbody></table>
