Mapping Script
For implementing the module, users have to add a blank div and script to their own system, which is mentioned below:
Add the Script: Include the following script in your HTML to load the required JavaScript file:
<script src="https://static.otaswitch.com/JS/script.js"></script>
Create a Container Div: Insert a blank div in your HTML and assign it an id of your choice:
<div id="app"></div>
Invoke the Function: Call the function exported from the script, passing in the necessary object. This object is mandatory for loading the module.
const tmpScriptObj = {
elementId: "app",
// It should be the same as the above added div id.
type: "channel-Mapping",
// Must be the same.
appId: "c3RheWlubi5zdWlzc3UuY29t",
// Your PMS domain base64 converted value.
propertyId: "",
// Pass the encrypted property ID obtained from the API mentioned below.
token: "",
// Pass the token ID obtained from the API mentioned below.
channelCode: "",
// If the user wants to pass a particular channel code, they need to provide it here.
// If no code is provided, all channels will load by default.
language: "en",
// Sets the language for the application (default is English).
themeColor: {
iconColor: "#1e8ce4" (Optional)
// If the user wants to customize the module based on color,
// pass an object here. An example object is mentioned below.
}
};
Use below mention function to load module:
loadScript(tmpScriptObj);
Language Supports in Widget
We currently support the following languages. To set a preferred language, please use the corresponding language codes:
Here’s the table you requested:
1
ar
Arabic
2
zn
Chinese
3
en
English
4
fr
French
5
ja
Japanese
6
ka
Georgian
7
de
German
8
it
Italian
9
pl
Polish
10
es
Spanish / Castilian
11
uk
Ukrainian
Last updated
Was this helpful?