This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
ors-soap-api:public:flightinfo [2015/01/24 16:40] 127.0.0.1 external edit |
ors-soap-api:public:flightinfo [2017/12/13 16:02] (current) admin [Examples] |
||
|---|---|---|---|
| Line 35: | Line 35: | ||
| [mid] => 998 | [mid] => 998 | ||
| [txt] => | [txt] => | ||
| + | [status] => 1 | ||
| ) | ) | ||
| Line 148: | Line 149: | ||
| * ''mid'' : message ID | * ''mid'' : message ID | ||
| * ''txt'' : message text | * ''txt'' : message text | ||
| + | * ''status'' : status indicator (1 - flight data available; 0 - no flight data) | ||
| * ''times'' (arrary) : flight times in array format | * ''times'' (arrary) : flight times in array format | ||
| * ''id'' : sequence number | * ''id'' : sequence number | ||
| Line 182: | Line 184: | ||
| $flight = $soapClient->orsxml_pauschal_api_call( 'flightInfo', $searchParams, $headerData ); | $flight = $soapClient->orsxml_pauschal_api_call( 'flightInfo', $searchParams, $headerData ); | ||
| </code> | </code> | ||
| + | |||
| + | ===== JSON Examples ===== | ||
| + | |||
| + | @see [[ors-soap-api:public:json_api]] how to post request. | ||
| + | |||
| + | <code php> | ||
| + | { | ||
| + | "requestType" : "info", | ||
| + | "action": "flightInfo", | ||
| + | "search": { | ||
| + | "hsc": "X71P0006A00007:0000000100000019400C8348D11", | ||
| + | "toc": "5VF", | ||
| + | "ahc": "MUC", | ||
| + | "zhc": "AYT", | ||
| + | "epc": "2" | ||
| + | }, | ||
| + | "header": { | ||
| + | "lang": "[lang]", | ||
| + | "usr" : "[usr]", | ||
| + | "pass": "[pass]", | ||
| + | "agid": "[agid]" | ||
| + | } | ||
| + | } | ||
| + | </code> | ||
| + | |||