Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.57 KB | None | 0 0
  1. create_campaign = {
  2. campaign_dates: {
  3. dt_start: '',
  4. dt_end: '',
  5. },
  6. campaign_target: {
  7. target_number: '', // comes from api
  8. gender: '',
  9. age_level: {
  10. age_start: '',
  11. age_end: '',
  12. },
  13. interest_area: [],
  14. geolocation: {},
  15. },
  16. campaign_products: {
  17. mobile_boost: {
  18. quantity: 0,
  19. price: 125.0,
  20. boosts_used: 0,
  21. },
  22. survey: {
  23. name: 'Survey',
  24. id_product: 1,
  25. quantity: 0,
  26. price: 125.0,
  27. surveys: [
  28. 0: {
  29. id: "46ff2ba7-ec5a-4e4a-b33a-358b6e228f64",
  30. name: "Multiple survey with 2 questions",
  31. multiple_questions: true,
  32. number_survey_questions: 2,
  33. questions: [
  34. 0: {
  35. id: "a323121d-c939-436c-b94b-76bd1057d077",
  36. boost: false,
  37. question: "This is the first question",
  38. date: Thu Jan 02 2020 00:00:00 GMT-0300,
  39. option_one: "Option 1",
  40. option_two: "Option 2",
  41. option_three: "Option 3",
  42. option_four: "Option 4",
  43. tags: [1, 5],
  44. file: "",
  45. image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
  46. },
  47. 1: {
  48. id: "017ab5b2-b082-4b1a-a55e-7fff1c93e52c",
  49. boost: false,
  50. question: "This is the second question",
  51. date: Thu Jan 09 2020 00:00:00 GMT-0300,
  52. option_one: "Option 1",
  53. option_two: "Option 2",
  54. option_three: "Option 3",
  55. option_four: "Option 4",
  56. tags: [1, 3],
  57. file: "",
  58. image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
  59. },
  60. ]
  61. },
  62. 1: {
  63. id: "c7bbef77-5794-43d3-bf00-ac39603c9b01",
  64. boost: false,
  65. name: "Survey with only 1 question",
  66. question: "This is the first question",
  67. date: Thu Jan 09 2020 00:00:00 GMT-0300,
  68. option_one: "Option 1",
  69. option_two: "Option 2",
  70. option_three: "Option 3",
  71. option_four: "Option 4",
  72. tags: [4, 5],
  73. file: "",
  74. image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
  75. }
  76. ],
  77. },
  78. reward: {
  79. name: 'Reward',
  80. id_product: 2,
  81. quantity: 0,
  82. price: 125.0,
  83. rewards: [
  84. 0: {
  85. id: "ba6e953d-1d1e-4561-85ab-c441886971e8",
  86. title: "Reward title",
  87. about: "Reward about",
  88. expire_date: Thu Jan 02 2020 00:00:00 GMT-0300,
  89. reward_cost: 123.00,
  90. coupon_type: "reusable",
  91. coupon_code: "YEAHDGADG",
  92. number_rewards: 12,
  93. additional_info: "visit link and get your reward",
  94. link: "www.google.com",
  95. tags: [2, 5],
  96. file: "",
  97. image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
  98. }
  99. ],
  100. },
  101. chat_channel: {
  102. name: 'Chat Channel',
  103. id_product: 3,
  104. quantity: 0,
  105. price: 125.0,
  106. channels: [
  107. 0: {
  108. id: "2c6a8934-954f-46b3-865a-b01b5ed282b6",
  109. name: "Chat channel name",
  110. channel_access: "public",
  111. channel_type: "oneToMany",
  112. countdown_channel: false,
  113. description: "This is a description",
  114. image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
  115. tags: [1, 6]
  116. }
  117. ],
  118. },
  119. event: {
  120. name: 'Event',
  121. id_product: 4,
  122. quantity: 0,
  123. price: 125.0,
  124. events: [
  125. 0: {
  126. id: "30529a56-4037-4ca6-bce0-99d104bcb478",
  127. title: "Event title",
  128. about: "About event",
  129. start_date: Wed Jan 01 2020 00:00:00 GMT-0300,
  130. end_date: Thu Jan 09 2020 00:00:00 GMT-0300,
  131. event_location: "Avenida Visconde de Jequitinhonha, 609 - Boa Viagem, Recife - State of Pernambuco, Brazil",
  132. link: "www.google.com",
  133. organizer: "Event organizer",
  134. tags: [3, 4],
  135. file: "",
  136. image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
  137. }
  138. ],
  139. },
  140. welcome_ad: {
  141. name: 'Welcome AD',
  142. id_product: 5,
  143. quantity: 0,
  144. price: 125.0,
  145. welcome_ads: [
  146. 0: {
  147. id: "99a74087-2932-4105-bf9d-903ab5d875d2",
  148. name: "Name welcome ad",
  149. boost: false,
  150. image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
  151. tags: [1, 3]
  152. }
  153. ],
  154. },
  155. content: {
  156. quantity: 0,
  157. price: 125.0,
  158. video: {
  159. name: 'Video',
  160. id_product: 6,
  161. quantity: 0,
  162. videos: [
  163. 0: {
  164. id: "dad08672-726f-4821-8bde-2950ab2774ac",
  165. title: "Video title",
  166. tags: [4, 5],
  167. file: "",
  168. image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
  169. }
  170. ],
  171. },
  172. post: {
  173. name: 'Post',
  174. id_product: 7,
  175. quantity: 0,
  176. posts: [
  177. 0: {
  178. id: "c1902b0a-7a24-45b3-972c-cc51a492e30c",
  179. title: "Post title",
  180. about: "This is an about",
  181. link: "www.google.com",
  182. tags: [1, 2],
  183. file: "",
  184. image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
  185. }
  186. ],
  187. },
  188. web: {
  189. name: 'Web',
  190. id_product: 8,
  191. quantity: 0,
  192. webs: [
  193. 0: {
  194. id: "51e72c8d-9bc1-421f-a2ea-453dc724fdf3",
  195. comment: "This is a comment",
  196. tags: [5, 6],
  197. webpage: "https://frontendmasters.com/books/front-end-handbook/2019/",
  198. image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
  199. }
  200. ],
  201. },
  202. announcement: {
  203. name: 'Announcement',
  204. id_product: 9,
  205. quantity: 0,
  206. announcements: [
  207. 0: {
  208. id: "c42bcacf-2e58-4987-84d6-a231b082f0c7",
  209. title: "Announcement title"
  210. about: "Announcement about",
  211. tags: [2, 6],
  212. file: "",
  213. image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
  214. }
  215. ],
  216. },
  217. document: {
  218. name: 'document',
  219. id_product: 10,
  220. quantity: 0,
  221. documents: [
  222. 0: {
  223. id: "fea78ef7-4f05-4b64-a727-2cfb7d47cfe4",
  224. title: "Document title",
  225. tags: [1, 2],
  226. file: "",
  227. image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
  228. }
  229. ],
  230. },
  231. },
  232. },
  233. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement