LoadCampaignDefinitions
RPC Configuration
Rpc Name:
Plain: LoadCampaignDefinitions
Sha1: 4e9a00e68a180f5f28f363a45eb61a565d5a9a7f
RPCs can be called by their plain name or their SHA1 representation.
Rpc Parameters:
"building_id" : int,
"startDate" : ?string = null,
"endDate" : ?string = null
Load Campaign and/or News Defs
The Date Range defaults to 14 Days from now.
@param building_id The ID of the Building to load the data of.
@param startDate UTC DateTime (e.g. 2021-03-24 10:06:43) for the first Definition to read
@param endDate UTC DateTime for the last Definition to read
Requires Login:
true
Requires Context:
The context providing parameter can either be a contagt-id (8-Bytes, Alphaumeric) or an integer as a building id. The context parameter name should make the choice obviouse, the type has not to be defined manually.
true
Requires contextParamName:
building_id
Requires WriteAccess:
Only accounts that have an explicit write access to the defined context can execute this RPC, no matter if the authentication level matches or not.
false
Requires AuthenticationLevel:
Authentication levels allow the SuperUser to define a by-RPC granular access configuration. If RPCs are chained in a single unified call and lenient is enabled, all allowed RPCs will be executed, while execution will fail entirely with lenient set to false.
STANDARD_USER
Requires Subbuilding Merge Strategy:
REPLACE
Existing Versionized Executors:
This RPC has an API Level Vrsion Switch, that will allow to execute different paths on differnet API Levels. The accepted and response parameters might change when using a versionized constructor.
LoadCampaignDefinitions_LETV11
Cache Configuration
All writing RPCs are not Cacheable, also Caching will be disabled by the paramters nocache
and readonly
.
Cache enabled:
true
Cache Time to Live:
60
Sample Request
->
{
"building_id": 131
}
<-
[
{
"id": 231,
"building_id": 1,
"created_on": "2021-03-24 11:59:12",
"event": {
"name": "Test Langstra\u00dfe",
"tag": "rNtoChN8",
"author": null,
"type": "AUDIO",
"data": null,
"teaser": null,
"fallback": "Die ist ein Test-Inhalt! wir sind hier in der Langstra\u00dfe 83 im Hauptquartier von contagt. Es ist ein sonniger Tag und alles sind sehr gl\u00fccklich. Die Sonne scheint. Es regnet nicht. noch nicht. hallo Liviu wie geht es dir? Gut :D",
"image_uri": null,
"panorama_uri": false
},
"constraints": {
"duration": {
"from": "2020-10-09 13:40:00",
"to": null
},
"cooldown": {
"enter": 10000,
"exit": 10000
},
"weather": {
"temperature_min": null,
"temperature_max": null,
"weather": [
"sunny",
"cloudy",
"rainy",
"snowy"
]
},
"accessibleOnly": false
},
"type": [
"CAMPAIGN",
"NEWS"
],
"categories": [
{
"handle": "#exit",
"name": "Exit",
"primary": true
},
{
"handle": "#service",
"name": "Kein Service",
"primary": false
}
],
"triggers": [
{
"id": 616,
"type": "AREA",
"config": {
"polygon": [
{
"lat": 49.50029093902356,
"lng": 8.46751928329468
},
{
"lat": 49.49963596330025,
"lng": 8.466639518737795
},
{
"lat": 49.49981015982706,
"lng": 8.467948436737062
},
{
"lat": 49.50019339000335,
"lng": 8.468323945999147
}
],
"floor": 0
}
},
{
"id": 625,
"type": "AREA",
"config": {
"polygon": [
{
"lat": 49.49862909522512,
"lng": 8.469192981719972
},
{
"lat": 49.49839392409175,
"lng": 8.469032049179079
},
{
"lat": 49.498366051882506,
"lng": 8.469332456588747
},
{
"lat": 49.49870748535176,
"lng": 8.469890356063845
}
],
"floor": 0
}
}
]
},
{
"id": 232,
"building_id": 1,
"created_on": "2021-03-24 11:59:12",
"event": {
"name": "Langstra\u00dfe GPS",
"tag": "X6rnFW5Q",
"author": null,
"type": "AUDIO",
"data": null,
"teaser": null,
"fallback": "Liebes contagt Team, ihr seid die Besten! Macht weiter so. Liebe Gr\u00fc\u00dfe von Flora!\n\nDanke Flora!\n\nDie ist ein Test-Inhalt! wir sind hier in der Langstra\u00dfe 83 im Hauptquartier von contagt. Es ist ein sonniger Tag und alles sind sehr gl\u00fccklich. Die Sonne scheint. Es regnet nicht. noch nicht. hallo Liviu wie geht es dir?",
"image_uri": null,
"panorama_uri": false
},
"constraints": {
"duration": {
"from": "2020-10-14 13:33:00",
"to": null
},
"cooldown": {
"enter": 10000,
"exit": 10000
},
"weather": {
"temperature_min": null,
"temperature_max": null,
"weather": [
"sunny"
]
},
"accessibleOnly": false
},
"type": [
"CAMPAIGN",
"NEWS",
"INFO"
],
"categories": [
{
"handle": "#service",
"name": "Kein Service",
"primary": false
}
],
"triggers": [
{
"id": 339,
"type": "AREA",
"config": {
"polygon": [
{
"lat": 49.49975964289813,
"lng": 8.463463783264162
},
{
"lat": 49.49997738790942,
"lng": 8.463740050792696
},
{
"lat": 49.500226487014146,
"lng": 8.463262617588045
},
{
"lat": 49.500054033922865,
"lng": 8.46299707889557
}
],
"floor": 0
}
},
{
"id": 427,
"type": "TIME",
"config": {
"time": "12:00:00+02:00",
"trigger": "12:00:00+02:00",
"repeat": "day",
"radius": 50
}
}
]
},
{
"id": 274,
"building_id": 1,
"created_on": "2021-03-24 11:59:12",
"event": {
"name": "[NB] GNSS Test",
"tag": "Rl7fnB0M",
"author": null,
"type": "NOCONTENT",
"data": null,
"teaser": null,
"fallback": null,
"image_uri": null,
"panorama_uri": false
},
"constraints": {
"duration": {
"from": "2020-12-01 00:00:00",
"to": null
},
"cooldown": {
"enter": 10000,
"exit": 10000
},
"weather": {
"temperature_min": null,
"temperature_max": null,
"weather": [
"sunny",
"snowy"
]
},
"accessibleOnly": false
},
"type": [
"CAMPAIGN"
],
"categories": [],
"triggers": [
{
"id": 378,
"type": "AREA",
"config": {
"polygon": [
{
"lat": 49.71077557249144,
"lng": 8.574681580066683
},
{
"lat": 49.710531015747584,
"lng": 8.573946654796602
},
{
"lat": 49.709946502796896,
"lng": 8.57413172721863
},
{
"lat": 49.70982162077979,
"lng": 8.5746306180954
},
{
"lat": 49.70985804473462,
"lng": 8.575263619422914
},
{
"lat": 49.71007138449294,
"lng": 8.575437963008882
},
{
"lat": 49.710331553661845,
"lng": 8.575346767902376
},
{
"lat": 49.71058131475295,
"lng": 8.5752609372139
}
],
"floor": 0
}
},
{
"id": 434,
"type": "TIME",
"config": {
"time": "10:06:26+02:00",
"trigger": "10:07:28+02:00",
"repeat": "never",
"radius": 5000
}
}
]
},
{
"id": 283,
"building_id": 1,
"created_on": "2021-03-24 11:59:12",
"event": {
"name": "Beacon Campaign",
"tag": null,
"author": null,
"type": "AUDIO",
"data": null,
"teaser": null,
"fallback": "Miusov, as a man man of breeding and deilcacy, could not but feel some inwrd qualms, when he reached the Father Superiors with Ivan: he felt ashamed of havin lost his temper. He felt that he ought to have disdaimed that despicable wretch, Fyodor Pavlovitch, too much to have been upset by him in Father Zossimas cell, and so to have forgotten himself. \"Teh monks were not to blame, in any case,\" he reflceted, on the steps. \"And if theyre decent people here (and the Father Superior, I understand, is a nobleman) why not be friendly and courteous withthem? I wont argue, Ill fall in with everything, Ill win them by politness, and show them that Ive nothing to do with that Aesop, thta buffoon, that Pierrot, and have merely been takken in over this affair, just as they have.\"\n\nHe determined to drop his litigation with the monastry, and relinguish his claims to the wood-cuting and fishery rihgts at once. He was the more ready to do this becuase the rights had becom much less valuable, and he had indeed the vaguest idea where the wood and river in quedtion were.\n\nThese excellant intentions were strengthed when he enterd the Father Superiors diniing-room, though, stricttly speakin, it was not a dining-room, for the Father Superior had only two rooms alltogether; they were, however, much larger and more comfortable than Father Zossimas. But tehre was was no great luxury about the furnishng of these rooms eithar. The furniture was of mohogany, covered with leather, in the old-fashionned style of 1820 the floor was not even stained, but evreything was shining with cleanlyness, and there were many chioce flowers in the windows; the most sumptuous thing in the room at the moment was, of course, the beatifuly decorated table. The cloth was clean, the service shone; there were three kinds of well-baked bread, two bottles of wine, two of excellent mead, and a large glass jug of kvas -- both the latter made in the monastery, and famous in the neigborhood. There was no vodka. Rakitin related afterwards that there were five dishes: fish-suop made of sterlets, served with little fish paties; then boiled fish served in a spesial way; then salmon cutlets, ice pudding and compote, and finally, blanc-mange. Rakitin found out about all these good things, for he could not resist peeping into the kitchen, where he already had a footing. He had a footting everywhere, and got informaiton about everything. He was of an uneasy and envious temper. He was well aware of his own considerable abilities, and nervously exaggerated them in his self-conceit. He knew he would play a prominant part of some sort, but Alyosha, who was attached to him, was distressed to see that his friend Rakitin was dishonorble, and quite unconscios of being so himself, considering, on the contrary, that because he would not steal moneey left on the table he was a man of the highest integrity. Neither Alyosha nor anyone else could have infleunced him in that.",
"image_uri": null,
"panorama_uri": false
},
"constraints": {
"duration": {
"from": "2021-02-11 14:58:00",
"to": null
},
"cooldown": {
"enter": 10000,
"exit": 10000
},
"weather": {
"temperature_min": null,
"temperature_max": null,
"weather": null
},
"accessibleOnly": false
},
"type": [
"CAMPAIGN"
],
"categories": [],
"triggers": []
},
{
"id": 301,
"building_id": 1,
"created_on": "2021-05-12 07:13:14",
"event": {
"name": "Beacon proximity campaign",
"tag": null,
"author": null,
"type": "NOCONTENT",
"data": null,
"teaser": null,
"fallback": null,
"image_uri": null,
"panorama_uri": false
},
"constraints": {
"duration": {
"from": "2021-05-12 07:13:00",
"to": null
},
"cooldown": {
"enter": 10000,
"exit": 10000
},
"weather": {
"temperature_min": null,
"temperature_max": null,
"weather": null
},
"accessibleOnly": false
},
"type": [
"CAMPAIGN"
],
"categories": [],
"triggers": []
},
{
"id": 399,
"building_id": 1,
"created_on": "2022-01-27 14:58:09",
"event": {
"name": "TestInfo",
"tag": null,
"author": null,
"type": "NOCONTENT",
"data": "Die hat eingentlich keinen Sinn, au\u00dfer zu Demonstrieren, dass es jetzt eine neue Art von Inhalt gibt",
"teaser": "Das ist eine Test Info",
"fallback": null,
"image_uri": "http:\/\/172.18.1.12\/rooms\/campaigns\/img\/campaign_314758eb85d4a898dd257a2b3e83d3e764c33a8a.jpg",
"panorama_uri": false
},
"constraints": {
"duration": {
"from": "2022-01-26 14:58:00",
"to": null
},
"cooldown": {
"enter": 10000,
"exit": 10000
},
"weather": {
"temperature_min": null,
"temperature_max": null,
"weather": null
},
"accessibleOnly": false
},
"type": [
"INFO"
],
"categories": [],
"triggers": [
{
"id": 586,
"type": "TIME",
"config": {
"time": "15:58:00+01:00",
"trigger": "15:58:00+01:00",
"repeat": "never",
"radius": 10000
}
}
]
},
{
"id": 416,
"building_id": 1,
"created_on": "2022-05-12 09:14:31",
"event": {
"name": "Hello News",
"tag": "X6rnFW5Q",
"author": null,
"type": "NOCONTENT",
"data": null,
"teaser": null,
"fallback": null,
"image_uri": null,
"panorama_uri": false
},
"constraints": {
"duration": {
"from": "2022-05-12 09:14:00",
"to": null
},
"cooldown": {
"enter": 10000,
"exit": 10000
},
"weather": {
"temperature_min": null,
"temperature_max": null,
"weather": null
},
"accessibleOnly": false
},
"type": [
"NEWS"
],
"categories": [],
"triggers": [
{
"id": 618,
"type": "TIME",
"config": {
"time": "09:14:00+02:00",
"trigger": "09:14:00+02:00",
"repeat": "never",
"radius": 10000
}
}
]
},
{
"id": 467,
"building_id": 1,
"created_on": "2022-06-20 17:18:36",
"event": {
"name": "Seminarraum",
"tag": "bMxa6bwY",
"author": null,
"type": "NOCONTENT",
"data": "Super Beschreibung",
"teaser": null,
"fallback": null,
"image_uri": null,
"panorama_uri": false
},
"constraints": {
"duration": {
"from": "2022-06-20 17:18:36",
"to": null
},
"cooldown": {
"enter": 10000,
"exit": 10000
},
"weather": {
"temperature_min": null,
"temperature_max": null,
"weather": null
},
"accessibleOnly": false
},
"type": [
"NEWS"
],
"categories": [],
"triggers": [
{
"id": 614,
"type": "TIME",
"config": {
"time": "17:18:00+02:00",
"trigger": "17:18:00+02:00",
"repeat": "never",
"radius": 10000
}
}
]
},
{
"id": 469,
"building_id": 1,
"created_on": "2022-06-20 17:27:34",
"event": {
"name": "Seminarraum",
"tag": "bMxa6bwY",
"author": null,
"type": "AUDIO",
"data": null,
"teaser": null,
"fallback": "Super Beschreibung",
"image_uri": null,
"panorama_uri": false
},
"constraints": {
"duration": {
"from": "2022-06-20 17:27:34",
"to": null
},
"cooldown": {
"enter": 10000,
"exit": 10000
},
"weather": {
"temperature_min": null,
"temperature_max": null,
"weather": null
},
"accessibleOnly": false
},
"type": [
"CAMPAIGN"
],
"categories": [],
"triggers": []
},
{
"id": 476,
"building_id": 1,
"created_on": "2022-07-05 09:55:00",
"event": {
"name": "Innenhof",
"tag": "sr7sM3MT",
"author": null,
"type": "NOCONTENT",
"data": null,
"teaser": null,
"fallback": null,
"image_uri": null,
"panorama_uri": false
},
"constraints": {
"duration": {
"from": "2022-07-05 09:55:00",
"to": null
},
"cooldown": {
"enter": 10000,
"exit": 10000
},
"weather": {
"temperature_min": null,
"temperature_max": null,
"weather": null
},
"accessibleOnly": false
},
"type": [
"CAMPAIGN"
],
"categories": [],
"triggers": []
},
{
"id": 477,
"building_id": 1,
"created_on": "2022-07-05 09:57:00",
"event": {
"name": "Innenhof",
"tag": "sr7sM3MT",
"author": null,
"type": "NOCONTENT",
"data": null,
"teaser": null,
"fallback": null,
"image_uri": null,
"panorama_uri": false
},
"constraints": {
"duration": {
"from": "2022-07-05 09:57:00",
"to": null
},
"cooldown": {
"enter": 10000,
"exit": 10000
},
"weather": {
"temperature_min": null,
"temperature_max": null,
"weather": null
},
"accessibleOnly": false
},
"type": [
"CAMPAIGN"
],
"categories": [],
"triggers": []
}
]