使用flight offer price api在航班列表中获取航班的徽标图像

lmyy7pcs  于 2021-10-10  发布在  Java
关注(0)|答案(0)|浏览(422)

我想使用flight offer price api在航班列表中显示航班的徽标图像:

  1. https://developers.amadeus.com/self-service/category/air/api-doc/flight-offers-search/api-reference.

我使用始发地和目的地、单程或往返等搜索航班,但结果中没有航班徽标图像。是否有办法使用“航班优惠搜索”api获取航班徽标图像?
我已经使用下面的api url来获取航班报价这是我的请求url

  1. https://test.api.amadeus.com/v2/shopping/flight-offers?originLocationCode=MAN&destinationLocationCode=LAX&departureDate=2021-07-29&adults=1&travelClass=ECONOMY¤cyCode=USD&max=100

这是我的api响应。响应中没有可用的航班徽标图像。

  1. stdClass Object
  2. (
  3. [meta] => stdClass Object
  4. (
  5. [count] => 93
  6. [links] => stdClass Object
  7. (
  8. [self] => https://test.api.amadeus.com/v2/shopping/flight-offers?originLocationCode=MAN&destinationLocationCode=LAX&departureDate=2021-07-29&adults=1&travelClass=ECONOMY¤cyCode=USD&max=100
  9. )
  10. )
  11. [data] => Array
  12. (
  13. [0] => stdClass Object
  14. (
  15. [type] => flight-offer
  16. [id] => 1
  17. [source] => GDS
  18. [instantTicketingRequired] =>
  19. [nonHomogeneous] =>
  20. [oneWay] =>
  21. [lastTicketingDate] => 2021-07-29
  22. [numberOfBookableSeats] => 4
  23. [itineraries] => Array
  24. (
  25. [0] => stdClass Object
  26. (
  27. [duration] => PT29H42M
  28. [segments] => Array
  29. (
  30. [0] => stdClass Object
  31. (
  32. [departure] => stdClass Object
  33. (
  34. [iataCode] => MAN
  35. [terminal] => 1
  36. [at] => 2021-07-29T10:40:00
  37. )
  38. [arrival] => stdClass Object
  39. (
  40. [iataCode] => LIS
  41. [terminal] => 1
  42. [at] => 2021-07-29T13:30:00
  43. )
  44. [carrierCode] => TP
  45. [number] => 1317
  46. [aircraft] => stdClass Object
  47. (
  48. [code] => 32N
  49. )
  50. [operating] => stdClass Object
  51. (
  52. [carrierCode] => TP
  53. )
  54. [duration] => PT2H50M
  55. [id] => 152
  56. [numberOfStops] => 0
  57. [blacklistedInEU] =>
  58. )
  59. [1] => stdClass Object
  60. (
  61. [departure] => stdClass Object
  62. (
  63. [iataCode] => LIS
  64. [terminal] => 1
  65. [at] => 2021-07-29T18:30:00
  66. )
  67. [arrival] => stdClass Object
  68. (
  69. [iataCode] => EWR
  70. [terminal] => B
  71. [at] => 2021-07-29T21:30:00
  72. )
  73. [carrierCode] => TP
  74. [number] => 207
  75. [aircraft] => stdClass Object
  76. (
  77. [code] => 32Q
  78. )
  79. [operating] => stdClass Object
  80. (
  81. [carrierCode] => TP
  82. )
  83. [duration] => PT8H
  84. [id] => 153
  85. [numberOfStops] => 0
  86. [blacklistedInEU] =>
  87. )
  88. [2] => stdClass Object
  89. (
  90. [departure] => stdClass Object
  91. (
  92. [iataCode] => JFK
  93. [terminal] => 5
  94. [at] => 2021-07-30T05:30:00
  95. )
  96. [arrival] => stdClass Object
  97. (
  98. [iataCode] => LAX
  99. [terminal] => 3
  100. [at] => 2021-07-30T08:22:00
  101. )
  102. [carrierCode] => TP
  103. [number] => 4325
  104. [aircraft] => stdClass Object
  105. (
  106. [code] => 32S
  107. )
  108. [operating] => stdClass Object
  109. (
  110. [carrierCode] => B6
  111. )
  112. [duration] => PT5H52M
  113. [id] => 154
  114. [numberOfStops] => 0
  115. [blacklistedInEU] =>
  116. )
  117. )
  118. )
  119. )
  120. [price] => stdClass Object
  121. (
  122. [currency] => USD
  123. [total] => 845.85
  124. [base] => 581.00
  125. [fees] => Array
  126. (
  127. [0] => stdClass Object
  128. (
  129. [amount] => 0.00
  130. [type] => SUPPLIER
  131. )
  132. [1] => stdClass Object
  133. (
  134. [amount] => 0.00
  135. [type] => TICKETING
  136. )
  137. )
  138. [grandTotal] => 845.85
  139. )
  140. [pricingOptions] => stdClass Object
  141. (
  142. [fareType] => Array
  143. (
  144. [0] => PUBLISHED
  145. )
  146. [includedCheckedBagsOnly] => 1
  147. )
  148. [validatingAirlineCodes] => Array
  149. (
  150. [0] => TP
  151. )
  152. [travelerPricings] => Array
  153. (
  154. [0] => stdClass Object
  155. (
  156. [travelerId] => 1
  157. [fareOption] => STANDARD
  158. [travelerType] => ADULT
  159. [price] => stdClass Object
  160. (
  161. [currency] => USD
  162. [total] => 845.85
  163. [base] => 581.00
  164. )
  165. [fareDetailsBySegment] => Array
  166. (
  167. [0] => stdClass Object
  168. (
  169. [segmentId] => 152
  170. [cabin] => ECONOMY
  171. [fareBasis] => LUKBSI0D
  172. [class] => L
  173. [includedCheckedBags] => stdClass Object
  174. (
  175. [quantity] => 1
  176. )
  177. )
  178. [1] => stdClass Object
  179. (
  180. [segmentId] => 153
  181. [cabin] => ECONOMY
  182. [fareBasis] => LUKBSI0D
  183. [class] => L
  184. [includedCheckedBags] => stdClass Object
  185. (
  186. [quantity] => 1
  187. )
  188. )
  189. [2] => stdClass Object
  190. (
  191. [segmentId] => 154
  192. [cabin] => ECONOMY
  193. [fareBasis] => LUKBSI0D
  194. [brandedFare] => BASIC
  195. [class] => L
  196. [includedCheckedBags] => stdClass Object
  197. (
  198. [quantity] => 1
  199. )
  200. )
  201. )
  202. )
  203. )
  204. )

或者有人知道我是否可以使用任何其他api来获取徽标?请使用amadeus api帮助获取飞行徽标我使用了amadeus测试api谢谢

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题