Skip to content

json native calls list

Kevin Mathmann edited this page Mar 18, 2019 · 9 revisions
name action example note
getAccessToken 1
{
    "action": 1,
    "value": {
        "callback": "path.callbackName",
        "id": "b3546680-1ac2-11e7-b54f-e7385e90e951",
        "parameter": {},
        "data": {}
    }
}
Needs to be a userToken.
result object -> data
{
    "tobitAccessToken": "testToken"
}
setAccessToken 2
{
    "action": 2,
    "value": {
        "callback": "path.callbackName",
        "id": "b3546680-1ac2-11e7-b54f-e7385e90e951",
        "parameter": {},
        "data": {
            "tobitAccessToken": "testToken"
        }
    }
}
The token is a renewToken.
default result object.
getKeyValue 3
{
    "action": 3,
    "value": {
        "callback": "path.callbackName",
        "id": "b3546680-1ac2-11e7-b54f-e7385e90e951",
        "parameter": {},
        "data": {
            "key": "myKey"
        }
    }
}
result object -> data.
{
    "value": "myValue"
}
setKeyValue 4
{
    "action": 4,
    "value": {
        "callback": "path.callbackName",
        "id": "b3546680-1ac2-11e7-b54f-e7385e90e951",
        "parameter": {},
        "data": {
            "key": "myKey",
            "value": "myValue"
        }
    }
}
default result object.
refreshChaynsIdIcons 5
{
    "action": 5,
    "value": {
        "callback": "path.callbackName",
        "id": "b3546680-1ac2-11e7-b54f-e7385e90e951",
        "parameter": {},
        "data": {}
    }
}
default result object.
closeWindow 6
{
    "action": 6,
    "value": {
        "callback": "path.callbackName",
        "id": "b3546680-1ac2-11e7-b54f-e7385e90e951",
        "parameter": {},
        "data": {}
    }
}
default result object.
resizeWindow 7
{
    "action": 7,
    "value": {
        "callback": "path.callbackName",
        "id": "b3546680-1ac2-11e7-b54f-e7385e90e951",
        "parameter": {},
        "data": {
            "x": 566,
            "y": 1200
        }
    }
}
default result object.
getSavedIntercomChats 8
{
    "action": 8,
    "value": {
        "callback": "path.callbackName",
        "id": "b3546680-1ac2-11e7-b54f-e7385e90e951",
        "parameter": {},
        "data": {
            "itemId": "eyJhIjoiXFxcXHctdGpcXGRhdmlkXFxhcmNoaXZlXFx1c2VyXFwxMDAwNDAwMFxcaW4iLCJyIjo2NSwicyI6MzR9Cg=="
        }
    }
}
default result object.
setIntercomChatData 9
{
    "action": 9,
    "value": {
        "callback": "path.callbackName",
        "id": "b3546680-1ac2-11e7-b54f-e7385e90e951",
        "parameter": {},
        "data": {
            "somedata": "asjhdajhsd",
            "moredata": "ddddddddddd"
        }
    }
}
default result object.
Everything in data you will get back with call 8 under data.Message.MessageData.intercom.data.more data.
download 10
{
    "action": 10,
    "value": {
        "callback": "path.callbackName",
        "id": "b3546680-1ac2-11e7-b54f-e7385e90e951",
        "parameter": {},
        "data": {
            "url": "https://....",
            "name": "xyc.pdf"
        }
    }
}
default result object.

How to update the table?

To update the table, use the generateTableScript. Update the generateTableScript wiki entrie and executes the script after that in the chrome console. Then replace the content of this entrie with your clipboard.