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"}

When customData is Successfully Applied
When Failed to Receive customData

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

When Successfully Verified with a Token

Last updated

Was this helpful?