Advertisement
winzeha

hg

Apr 26th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. {
  2. messages: [
  3. {
  4. attachment: {
  5. type: "template",
  6. payload: {
  7. template_type: "airline_boardingpass",
  8. intro_message: "You are checked in.",
  9. locale: "en_US",
  10. boarding_pass: [
  11. {
  12. passenger_name: "SMITH/NICOLAS",
  13. pnr_number: "CG4X7U",
  14. travel_class: "business",
  15. seat: "74J",
  16. auxiliary_fields: [
  17. {
  18. label: "Terminal",
  19. value: "T1"
  20. },
  21. {
  22. label: "Departure",
  23. value: "30OCT 19:05"
  24. }
  25. ],
  26. secondary_fields: [
  27. {
  28. label: "Boarding",
  29. value: "18:30"
  30. },
  31. {
  32. label: "Gate",
  33. value: "D57"
  34. },
  35. {
  36. label: "Seat",
  37. value: "74J"
  38. },
  39. {
  40. label: "Sec.Nr.",
  41. value: "003"
  42. }
  43. ],
  44. logo_image_url: "https://www.example.com/en/logo.png",
  45. header_image_url: "https://www.example.com/en/fb/header.png",
  46. qr_code: "M1SMITH/NICOLAS CG4X7U nawouehgawgnapwi3jfa0wfh",
  47. above_bar_code_image_url: "https://www.example.com/en/PLAT.png",
  48. flight_info: {
  49. flight_number: "KL0642",
  50. departure_airport: {
  51. airport_code: "JFK",
  52. city: "New York",
  53. terminal: "T1",
  54. gate: "D57"
  55. },
  56. arrival_airport: {
  57. airport_code: "AMS",
  58. city: "Amsterdam"
  59. },
  60. flight_schedule: {
  61. departure_time: "2016-01-02T19:05",
  62. arrival_time: "2016-01-05T17:30"
  63. }
  64. }
  65. },
  66. {
  67. passenger_name: "JONES/FARBOUND",
  68. pnr_number: "CG4X7U",
  69. travel_class: "business",
  70. seat: "74K",
  71. auxiliary_fields: [
  72. {
  73. label: "Terminal",
  74. value: "T1"
  75. },
  76. {
  77. label: "Departure",
  78. value: "30OCT 19:05"
  79. }
  80. ],
  81. secondary_fields: [
  82. {
  83. label: "Boarding",
  84. value: "18:30"
  85. },
  86. {
  87. label: "Gate",
  88. value: "D57"
  89. },
  90. {
  91. label: "Seat",
  92. value: "74K"
  93. },
  94. {
  95. label: "Sec.Nr.",
  96. value: "004"
  97. }
  98. ],
  99. logo_image_url: "https://www.example.com/en/logo.png",
  100. header_image_url: "https://www.example.com/en/fb/header.png",
  101. qr_code: "M1JONES/FARBOUND CG4X7U nawouehgawgnapwi3jfa0wfh",
  102. above_bar_code_image_url: "https://www.example.com/en/PLAT.png",
  103. flight_info: {
  104. flight_number: "KL0642",
  105. departure_airport: {
  106. airport_code: "JFK",
  107. city: "New York",
  108. terminal: "T1",
  109. gate: "D57"
  110. },
  111. arrival_airport: {
  112. airport_code: "AMS",
  113. city: "Amsterdam"
  114. },
  115. flight_schedule: {
  116. departure_time: "2016-01-02T19:05",
  117. arrival_time: "2016-01-05T17:30"
  118. }
  119. }
  120. }
  121. ]
  122. }
  123. }
  124. }
  125. ]
  126. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement