TestJsonDataFromFetch.txt 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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. },
  48. {
  49. "vanillaPayload": {
  50. "campaignId": "9350598726327992320",
  51. "campaignStartTimeMillis": "1523985333000",
  52. "campaignEndTimeMillis": "9223372036854775807",
  53. "campaignName": "Inception1"
  54. },
  55. "content": {
  56. "modal": {
  57. "title": {
  58. "text": "Test 2",
  59. "hexColor": "#000000"
  60. },
  61. "body": {
  62. "hexColor": "#000000"
  63. },
  64. "imageUrl": "https://image.com/5GCaq8sWMgk.jpg",
  65. "actionButton": {
  66. "text": {
  67. "text": "Learn More",
  68. "hexColor": "#ffffff"
  69. },
  70. "buttonHexColor": "#000000"
  71. },
  72. "action": {
  73. "actionUrl": "https://www.google.com"
  74. },
  75. "backgroundHexColor": "#ffffff"
  76. }
  77. },
  78. "priority": {
  79. "value": 1
  80. },
  81. "triggeringConditions": [
  82. {
  83. "fiamTrigger": "ON_FOREGROUND"
  84. },
  85. {
  86. "event": {
  87. "name": "jackpot"
  88. }
  89. }
  90. ]
  91. },
  92. {
  93. "vanillaPayload": {
  94. "campaignId": "14819094573862617088",
  95. "campaignStartTimeMillis": "1519934825000",
  96. "campaignEndTimeMillis": "9223372036854775807",
  97. "campaignName": "Top banner"
  98. },
  99. "content": {
  100. "banner": {
  101. "title": {
  102. "text": "Hey everybody!",
  103. "hexColor": "#000000"
  104. },
  105. "body": {
  106. "text": "This is an in-app message! Now go to Screen 2!",
  107. "hexColor": "#000000"
  108. },
  109. "imageUrl": "https://image.com/5YYCaq8sWMgk.png",
  110. "action": {
  111. "actionUrl": "https://test-app.firebaseapp.com/Calculator/screen2"
  112. },
  113. "backgroundHexColor": "#ffffff"
  114. }
  115. },
  116. "priority": {
  117. "value": 1
  118. },
  119. "triggeringConditions": [
  120. {
  121. "event": {
  122. "name": "jackpot"
  123. }
  124. }
  125. ]
  126. },
  127. {
  128. "vanillaPayload": {
  129. "campaignId": "5595722537007841280",
  130. "campaignStartTimeMillis": "1519934650000",
  131. "campaignEndTimeMillis": "9223372036854775807",
  132. "campaignName": "Ducks on foreground"
  133. },
  134. "content": {
  135. "modal": {
  136. "title": {
  137. "text": "Look, it's a duck!",
  138. "hexColor": "#000000"
  139. },
  140. "body": {
  141. "text": "It's a very nice duck.",
  142. "hexColor": "#000000"
  143. },
  144. "imageUrl": "https://image.com/5YYCaq8sWMgkff.png",
  145. "actionButton": {
  146. "text": {
  147. "text": "Go to Google.com",
  148. "hexColor": "#ffffff"
  149. },
  150. "buttonHexColor": "#000000"
  151. },
  152. "action": {
  153. "actionUrl": "https://www.google.com"
  154. },
  155. "backgroundHexColor": "#ffffff"
  156. }
  157. },
  158. "priority": {
  159. "value": 1
  160. },
  161. "triggeringConditions": [
  162. {
  163. "fiamTrigger": "ON_FOREGROUND"
  164. }
  165. ]
  166. },
  167. {
  168. "vanillaPayload": {
  169. "campaignId": "5432869654332221",
  170. "campaignStartTimeMillis": "1519934650000",
  171. "campaignEndTimeMillis": "9223372036854775807",
  172. "campaignName": "Super Bowl LIV"
  173. },
  174. "content": {
  175. "card": {
  176. "title": {
  177. "text": "Eagles are going to win",
  178. "hexColor": "#004953"
  179. },
  180. "body": {
  181. "text": "Start of a dynasty.",
  182. "hexColor": "#004953"
  183. },
  184. "portraitImageUrl": "https://image.com/birds.png",
  185. "landscapeImageUrl": "https://image.com/ls_birds.png",
  186. "primaryActionButton": {
  187. "text": {
  188. "text": "Win Super Bowl LIV",
  189. "hexColor": "#000000"
  190. },
  191. "buttonHexColor": "#ffffff"
  192. },
  193. "secondaryActionButton": {
  194. "text": {
  195. "text": "Win Super Bowl LV",
  196. "hexColor": "#000000"
  197. },
  198. "buttonHexColor": "#ffffff"
  199. },
  200. "primaryAction": {
  201. "actionUrl": "https://www.google.com"
  202. },
  203. "secondaryAction": {
  204. "actionUrl": "https://www.google.com"
  205. },
  206. "backgroundHexColor": "#ffffff"
  207. }
  208. },
  209. "priority": {
  210. "value": 1
  211. },
  212. "triggeringConditions": [
  213. {
  214. "fiamTrigger": "ON_FOREGROUND"
  215. }
  216. ]
  217. }
  218. ],
  219. "expirationEpochTimestampMillis": "1537896430193"
  220. }