TestJsonDataFromFetch.txt 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. {
  2. "messages": [
  3. {
  4. "vanillaPayload": {
  5. "campaignId": "13313766398414028800",
  6. "campaignStartTimeMillis": "1523986039000",
  7. "campaignEndTimeMillis": "1526986039000",
  8. "campaignName": "first campaign"
  9. },
  10. "content": {
  11. "modal": {
  12. "title": {
  13. "text": "I heard you like In-App Messages",
  14. "hexColor": "#000000"
  15. },
  16. "body": {
  17. "text": "This is message body",
  18. "hexColor": "#000000"
  19. },
  20. "imageUrl": "https://image.com/5GCaq8sWMgk",
  21. "actionButton": {
  22. "text": {
  23. "text": "Learn More",
  24. "hexColor": "#ffffff"
  25. },
  26. "buttonHexColor": "#000000"
  27. },
  28. "action": {
  29. "actionUrl": "https://www.google.com"
  30. },
  31. "backgroundHexColor": "#fffff8"
  32. }
  33. },
  34. "priority": {
  35. "value": 1
  36. },
  37. "triggeringConditions": [
  38. {
  39. "fiamTrigger": "ON_FOREGROUND"
  40. },
  41. {
  42. "event": {
  43. "name": "jackpot"
  44. }
  45. }
  46. ],
  47. "dataBundle": {
  48. "a":"b",
  49. "c":"d"
  50. }
  51. },
  52. {
  53. "vanillaPayload": {
  54. "campaignId": "9350598726327992320",
  55. "campaignStartTimeMillis": "1523985333000",
  56. "campaignEndTimeMillis": "9223372036854775807",
  57. "campaignName": "Inception1"
  58. },
  59. "content": {
  60. "modal": {
  61. "title": {
  62. "text": "Test 2",
  63. "hexColor": "#000000"
  64. },
  65. "body": {
  66. "hexColor": "#000000"
  67. },
  68. "imageUrl": "https://image.com/5GCaq8sWMgk.jpg",
  69. "actionButton": {
  70. "text": {
  71. "text": "Learn More",
  72. "hexColor": "#ffffff"
  73. },
  74. "buttonHexColor": "#000000"
  75. },
  76. "action": {
  77. "actionUrl": "https://www.google.com"
  78. },
  79. "backgroundHexColor": "#ffffff"
  80. }
  81. },
  82. "priority": {
  83. "value": 1
  84. },
  85. "triggeringConditions": [
  86. {
  87. "fiamTrigger": "ON_FOREGROUND"
  88. },
  89. {
  90. "event": {
  91. "name": "jackpot"
  92. }
  93. }
  94. ]
  95. },
  96. {
  97. "vanillaPayload": {
  98. "campaignId": "14819094573862617088",
  99. "campaignStartTimeMillis": "1519934825000",
  100. "campaignEndTimeMillis": "9223372036854775807",
  101. "campaignName": "Top banner"
  102. },
  103. "content": {
  104. "banner": {
  105. "title": {
  106. "text": "Hey everybody!",
  107. "hexColor": "#000000"
  108. },
  109. "body": {
  110. "text": "This is an in-app message! Now go to Screen 2!",
  111. "hexColor": "#000000"
  112. },
  113. "imageUrl": "https://image.com/5YYCaq8sWMgk.png",
  114. "action": {
  115. "actionUrl": "https://test-app.firebaseapp.com/Calculator/screen2"
  116. },
  117. "backgroundHexColor": "#ffffff"
  118. }
  119. },
  120. "priority": {
  121. "value": 1
  122. },
  123. "triggeringConditions": [
  124. {
  125. "event": {
  126. "name": "jackpot"
  127. }
  128. }
  129. ]
  130. },
  131. {
  132. "vanillaPayload": {
  133. "campaignId": "5595722537007841280",
  134. "campaignStartTimeMillis": "1519934650000",
  135. "campaignEndTimeMillis": "9223372036854775807",
  136. "campaignName": "Ducks on foreground"
  137. },
  138. "content": {
  139. "modal": {
  140. "title": {
  141. "text": "Look, it's a duck!",
  142. "hexColor": "#000000"
  143. },
  144. "body": {
  145. "text": "It's a very nice duck.",
  146. "hexColor": "#000000"
  147. },
  148. "imageUrl": "https://image.com/5YYCaq8sWMgkff.png",
  149. "actionButton": {
  150. "text": {
  151. "text": "Go to Google.com",
  152. "hexColor": "#ffffff"
  153. },
  154. "buttonHexColor": "#000000"
  155. },
  156. "action": {
  157. "actionUrl": "https://www.google.com"
  158. },
  159. "backgroundHexColor": "#ffffff"
  160. }
  161. },
  162. "priority": {
  163. "value": 1
  164. },
  165. "triggeringConditions": [
  166. {
  167. "fiamTrigger": "ON_FOREGROUND"
  168. }
  169. ]
  170. },
  171. {
  172. "vanillaPayload": {
  173. "campaignId": "5432869654332221",
  174. "campaignStartTimeMillis": "1519934650000",
  175. "campaignEndTimeMillis": "9223372036854775807",
  176. "campaignName": "Super Bowl LIV"
  177. },
  178. "content": {
  179. "card": {
  180. "title": {
  181. "text": "Eagles are going to win",
  182. "hexColor": "#004953"
  183. },
  184. "body": {
  185. "text": "Start of a dynasty.",
  186. "hexColor": "#004953"
  187. },
  188. "portraitImageUrl": "https://image.com/birds.png",
  189. "landscapeImageUrl": "https://image.com/ls_birds.png",
  190. "primaryActionButton": {
  191. "text": {
  192. "text": "Win Super Bowl LIV",
  193. "hexColor": "#000000"
  194. },
  195. "buttonHexColor": "#ffffff"
  196. },
  197. "secondaryActionButton": {
  198. "text": {
  199. "text": "Win Super Bowl LV",
  200. "hexColor": "#000000"
  201. },
  202. "buttonHexColor": "#ffffff"
  203. },
  204. "primaryAction": {
  205. "actionUrl": "https://www.google.com"
  206. },
  207. "secondaryAction": {
  208. "actionUrl": "https://www.google.com"
  209. },
  210. "backgroundHexColor": "#ffffff"
  211. }
  212. },
  213. "priority": {
  214. "value": 1
  215. },
  216. "triggeringConditions": [
  217. {
  218. "fiamTrigger": "ON_FOREGROUND"
  219. }
  220. ]
  221. },
  222. {
  223. "experimentalPayload": {
  224. "campaignId": "687787988989",
  225. "campaignStartTimeMillis": "1519934650000",
  226. "campaignEndTimeMillis": "9223372036854775807",
  227. "campaignName": "Super Bowl LV",
  228. "experimentPayload" : {
  229. "experimentId": "_exp_1",
  230. "experimentStartTimeMillis": "1582143484729",
  231. "overflowPolicy": "DISCARD_OLDEST",
  232. "timeToLiveMillis": "15552000000",
  233. "triggerTimeoutMillis": "15552000000",
  234. "variantId": "1"
  235. }
  236. },
  237. "content": {
  238. "modal": {
  239. "title": {
  240. "text": "Eagles are going to win",
  241. "hexColor": "#004953"
  242. },
  243. "actionButton": {
  244. "text": {
  245. "text": "Open",
  246. "hexColor": "#1a0dab"
  247. },
  248. "buttonHexColor": "#000000"
  249. },
  250. "action": {
  251. "actionUrl": "https://www.google.com"
  252. },
  253. "backgroundHexColor": "#ffffff"
  254. }
  255. },
  256. "triggeringConditions": [
  257. {
  258. "fiamTrigger": "ON_FOREGROUND"
  259. }
  260. ]
  261. },
  262. {
  263. "vanillaPayload": {
  264. "campaignId": "1234567890",
  265. "campaignStartTimeMillis": "1519934650000",
  266. "campaignEndTimeMillis": "9223372036854775807",
  267. "campaignName": "URL Validation"
  268. },
  269. "content": {
  270. "card": {
  271. "title": {
  272. "text": "Let’s check some weird URLs!",
  273. "hexColor": "#004953"
  274. },
  275. "portraitImageUrl": " https:// example.com/ recoverable_image_url ",
  276. "landscapeImageUrl": "http://example.com/image_url_without_https.jpg",
  277. "primaryActionButton": {
  278. "text": {
  279. "text": "Malformatted but Recoverable URL",
  280. "hexColor": "#000000"
  281. },
  282. "buttonHexColor": "#ffffff"
  283. },
  284. "secondaryActionButton": {
  285. "text": {
  286. "text": "Invalid URL",
  287. "hexColor": "#000000"
  288. },
  289. "buttonHexColor": "#ffffff"
  290. },
  291. "primaryAction": {
  292. "actionUrl": "http:// example.com / recoverable_action_url_without_https "
  293. },
  294. "secondaryAction": {
  295. "actionUrl": "NOT ^ A ^ URL"
  296. },
  297. "backgroundHexColor": "#ffffff"
  298. }
  299. },
  300. "priority": {
  301. "value": 1
  302. },
  303. "triggeringConditions": [
  304. {
  305. "fiamTrigger": "ON_FOREGROUND"
  306. }
  307. ]
  308. }
  309. ],
  310. "expirationEpochTimestampMillis": "1537896430193"
  311. }