How to Use URL Query Strings
A URL query string is a data delivery method that provides input data at the end of the URL.
E.g., https://zep.us/play/{mapHashId}?{parameter}={value}
You can deliver data to a ZEP Space or ZEP Script using a URL query strings.
URL Query String Parameters Available in ZEP
1. name
When users who are not signed in enter a Space, you can set their nickname as the value passed as the name parameter.
Example:
https://zep.us/play/{mapHashId}?name=A
โ ๏ธ Make sure to deactivate nickname settings pop-up for guests!

2. customData
You can pass data to ZEP Script player objects. You can create a whitelist function, such as identifying users by passing user identification information such as SSO token information to ZEP Script.
Example 1 Receive user information with customData and apply it. (Normal app, sidebar app recommended)
โก URL used for example
https://zep.us/play/{mapHashId}?customData={"name":"customUser", "moveSpeed":150, "title":"customTitle"}


Example 2
Create a simple token-based whitelist function. (Normal app, sidebar app recommended)
โ A token with base64 encryption in the browser developer tools (F12) has been created as follows:
โก URL used for example
https://zep.us/play/{mapHashId}?customData=JTdCJTIydG9rZW4lMjIlM0ElMjIlRUMlOUMlQTAlRUMlQTAlODAxJTJGd2hpdGVMaXN0JTIyJTdE

Last updated
Was this helpful?