Token

From Zaparoo Wiki

Revision as of 02:06, 23 December 2024 by Wizzo (talk | contribs) (Created page with "'''Token''' is a name used to describe all types of objects, physical or virtual, that can be scanned by a reader and used to run ZapScript. It's a best effort attempt to unify the many types of scannable objects into a single concept that can be worked with. All scanned objects are eventually translated into a token before they're processed by the Zaparoo Core software or matched against mappings. An NFC tag token may look like this:<syntaxhighlight lang="json"> {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Token is a name used to describe all types of objects, physical or virtual, that can be scanned by a reader and used to run ZapScript. It's a best effort attempt to unify the many types of scannable objects into a single concept that can be worked with.

All scanned objects are eventually translated into a token before they're processed by the Zaparoo Core software or matched against mappings.

An NFC tag token may look like this:

{
    "id": "04a1b2c3d4e5f6",
    "value": "**launch.random:Genesis",
    "data": "2a2a6c61756e63682e72616e646f6d3a47656e65736973",
}

All fields in a token object are optional, but at least one is required to be populated.