TrackerPro Admin API: Launching PAYT
September 13, 2024TrackerPro Admin API: Contents
September 23, 2024TrackerPro Admin API: Embedding View
Recall that PAYT View can be embedded into a webpage as an iFrame by setting the appropriate src in the iFrame.
<iframe id="paytframe" width="100%" height="500" src="https://trackerproview.payasyoutrack.com/#Embed/LiveMapView/{XXXXLAUNCHTOKENXXXX}" frameborder="0"></iframe>
Different initial views can be launched by using a different URL. Here are some examples.
- Live Map View – https://trackerproview.payasyoutrack.com/#Embed/LiveMapView/{XXXXLAUNCHTOKENXXXX}
- Reports View – https://trackerproview.payasyoutrack.com/#Embed/ReportsView/{XXXXLAUNCHTOKENXXXX}
- Assets View – https://trackerproview.payasyoutrack.com/#Embed/AssetsView/{XXXXLAUNCHTOKENXXXX}
- Dashboard View – https://trackerproview.payasyoutrack.com/#Embed/DashboardView/{XXXXLAUNCHTOKENXXXX}
- Places View – https://trackerproview.payasyoutrack.com/#Embed/PlacesView/{XXXXLAUNCHTOKENXXXX}
Controlling the iFrame
It is possible to send and receive messages from the iFrame. This allows the iFrame to be controlled by the web page in which it is embedded.
Please see the Client API documentation for instructions on how to communicate with the iFrame.
Next: Client API
Back to: Contents