Api session items eventbundles: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Manual revert |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/eventbundles/?f=JSON&token=API_TOKEN</syntaxhighlight> | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/eventbundles/?f=JSON&token=API_TOKEN</syntaxhighlight> | ||
Example Response: | Example Response: | ||
<syntaxhighlight lang="text" copy>[ ]</syntaxhighlight> | <syntaxhighlight lang="text" copy>[ { | ||
"clientEvents" : [ ], | |||
"compoundEventBundleIDs" : [ ], | |||
"description" : "", | |||
"id" : 0, | |||
"imageName" : "empty.png", | |||
"imageVersion" : 0, | |||
"name" : "Welcome Cinematic Start", | |||
"serverEvents" : [ { | |||
"id" : 0, | |||
"parameters" : [ [ "LogicEventType", "CINEMATIC_STAKEHOLDER_START" ], { | |||
"@type" : "ItemID", | |||
"id" : 0, | |||
"mapLink" : "STAKEHOLDERS" | |||
}, { | |||
"@type" : "ItemID", | |||
"id" : 0, | |||
"mapLink" : "CINEMATIC_DATAS" | |||
}, true ] | |||
}, { | |||
"id" : 1, | |||
"parameters" : [ [ "LogicEventType", "CINEMATIC_STAKEHOLDER_START" ], { | |||
"@type" : "ItemID", | |||
"id" : 2, | |||
"mapLink" : "STAKEHOLDERS" | |||
}, { | |||
"@type" : "ItemID", | |||
"id" : 0, | |||
"mapLink" : "CINEMATIC_DATAS" | |||
}, true ] | |||
}, { | |||
"id" : 2, | |||
"parameters" : [ [ "LogicEventType", "CINEMATIC_STAKEHOLDER_START" ], { | |||
"@type" : "ItemID", | |||
"id" : 3, | |||
"mapLink" : "STAKEHOLDERS" | |||
}, { | |||
"@type" : "ItemID", | |||
"id" : 0, | |||
"mapLink" : "CINEMATIC_DATAS" | |||
}, true ] | |||
}, { | |||
"id" : 3, | |||
"parameters" : [ [ "LogicEventType", "CINEMATIC_STAKEHOLDER_START" ], { | |||
"@type" : "ItemID", | |||
"id" : 4, | |||
"mapLink" : "STAKEHOLDERS" | |||
}, { | |||
"@type" : "ItemID", | |||
"id" : 0, | |||
"mapLink" : "CINEMATIC_DATAS" | |||
}, true ] | |||
}, { | |||
"id" : 4, | |||
"parameters" : [ [ "LogicEventType", "CINEMATIC_STAKEHOLDER_START" ], { | |||
"@type" : "ItemID", | |||
"id" : 4, | |||
"mapLink" : "STAKEHOLDERS" | |||
}, { | |||
"@type" : "ItemID", | |||
"id" : 0, | |||
"mapLink" : "CINEMATIC_DATAS" | |||
}, true ] | |||
}, { | |||
"id" : 5, | |||
"parameters" : [ [ "LogicEventType", "CINEMATIC_STAKEHOLDER_START" ], { | |||
"@type" : "ItemID", | |||
"id" : 1, | |||
"mapLink" : "STAKEHOLDERS" | |||
}, { | |||
"@type" : "ItemID", | |||
"id" : 0, | |||
"mapLink" : "CINEMATIC_DATAS" | |||
}, true ] | |||
} ], | |||
"version" : 1 | |||
} ]</syntaxhighlight> | |||
==Limit Queries== | ==Limit Queries== | ||
version=100: | version=100: | ||
Latest revision as of 12:25, 17 June 2026
API Endpoint: /api/session/items/eventbundles/
Edit items with events described at Api session event editor eventbundle.
Default Query:
https://engine.tygron.com/api/session/items/eventbundles/?f=JSON&token=API_TOKENExample Response:
[ {
"clientEvents" : [ ],
"compoundEventBundleIDs" : [ ],
"description" : "",
"id" : 0,
"imageName" : "empty.png",
"imageVersion" : 0,
"name" : "Welcome Cinematic Start",
"serverEvents" : [ {
"id" : 0,
"parameters" : [ [ "LogicEventType", "CINEMATIC_STAKEHOLDER_START" ], {
"@type" : "ItemID",
"id" : 0,
"mapLink" : "STAKEHOLDERS"
}, {
"@type" : "ItemID",
"id" : 0,
"mapLink" : "CINEMATIC_DATAS"
}, true ]
}, {
"id" : 1,
"parameters" : [ [ "LogicEventType", "CINEMATIC_STAKEHOLDER_START" ], {
"@type" : "ItemID",
"id" : 2,
"mapLink" : "STAKEHOLDERS"
}, {
"@type" : "ItemID",
"id" : 0,
"mapLink" : "CINEMATIC_DATAS"
}, true ]
}, {
"id" : 2,
"parameters" : [ [ "LogicEventType", "CINEMATIC_STAKEHOLDER_START" ], {
"@type" : "ItemID",
"id" : 3,
"mapLink" : "STAKEHOLDERS"
}, {
"@type" : "ItemID",
"id" : 0,
"mapLink" : "CINEMATIC_DATAS"
}, true ]
}, {
"id" : 3,
"parameters" : [ [ "LogicEventType", "CINEMATIC_STAKEHOLDER_START" ], {
"@type" : "ItemID",
"id" : 4,
"mapLink" : "STAKEHOLDERS"
}, {
"@type" : "ItemID",
"id" : 0,
"mapLink" : "CINEMATIC_DATAS"
}, true ]
}, {
"id" : 4,
"parameters" : [ [ "LogicEventType", "CINEMATIC_STAKEHOLDER_START" ], {
"@type" : "ItemID",
"id" : 4,
"mapLink" : "STAKEHOLDERS"
}, {
"@type" : "ItemID",
"id" : 0,
"mapLink" : "CINEMATIC_DATAS"
}, true ]
}, {
"id" : 5,
"parameters" : [ [ "LogicEventType", "CINEMATIC_STAKEHOLDER_START" ], {
"@type" : "ItemID",
"id" : 1,
"mapLink" : "STAKEHOLDERS"
}, {
"@type" : "ItemID",
"id" : 0,
"mapLink" : "CINEMATIC_DATAS"
}, true ]
} ],
"version" : 1
} ]Limit Queries
version=100:
https://engine.tygron.com/api/session/items/eventbundles/?version=100&token=API_TOKENShow Queries
max version:
https://engine.tygron.com/api/session/items/eventbundles/version/?token=API_TOKENsize:
https://engine.tygron.com/api/session/items/eventbundles/size/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/eventbundles/?f=HTML&token=API_TOKENJSON:
https://engine.tygron.com/api/session/items/eventbundles/?f=JSON&token=API_TOKENCSV:
https://engine.tygron.com/api/session/items/eventbundles/?f=CSV&token=API_TOKENSSV:
https://engine.tygron.com/api/session/items/eventbundles/?f=SSV&token=API_TOKENSMILE:
https://engine.tygron.com/api/session/items/eventbundles/?f=SMILE&token=API_TOKENZIPJSON:
https://engine.tygron.com/api/session/items/eventbundles/?f=ZIPJSON&token=API_TOKENZIPSMILE:
https://engine.tygron.com/api/session/items/eventbundles/?f=ZIPSMILE&token=API_TOKENApi Model CodedEvent
API Model description of CodedEvent
| Name | Type | Description |
|---|---|---|
| id | int | |
| parameters | Object[] |
Api Model EventBundle
API Model description of EventBundle
| Name | Type | Description |
|---|---|---|
| clientEvents | CodedEvent[] | |
| compoundEventBundleIDs | int[] | Event Bundles ID |
| description | String | |
| id | int | |
| imageName | String | |
| imageVersion | int | |
| name | String | |
| serverEvents | CodedEvent[] | |
| version | int |