-
Notifications
You must be signed in to change notification settings - Fork 0
Home
João Santiago edited this page Dec 28, 2019
·
7 revisions
A place to store important references.
Slash command payload
{:trigger_id 2,
:command some_command,
:channel_id CKD7PH20M,
:token 2,
:channel_name name,
:user_id UDTJYJ1K7,
:team_id T38L468JV,
:user_name name,
:team_domain domain,
:response_url 2,
:text l}
Interactive response payload
{:api_app_id ALDKD5U93,
:trigger_id 2,
:channel {:id CKD7PH20M, :name test},
:type block_actions,
:actions [{:action_id look-west,
:block_id FSCtb,
:text {:type plain_text, :text West, :emoji false},
:value w,
:type button,
:action_ts 1570891830.870855}],
:token 2,
:team {:id T38L468JV, :domain domain},
:container {:type message,
:message_ts 1570891829.0114,
:channel_id CKD7PH20M,
:is_ephemeral false},
:user {:id UDTJYJ1K7,
:username name,
:name name,
:team_id T38L468JV},
:response_url 2,
:message {:type message,
:subtype bot_message,
:text This,
content can't,
be displayed.,
:ts 1570891829.0114,
:bot_id BLDKNS02Z,
:blocks [{:type section,
:block_id QnsQ,
:text {:type mrkdwn,
:text This,
is to,
user UDTJYJ1K7,
say again!,
:verbatim false}}
{:type actions,
:block_id FSCtb,
:elements [{:type button,
:action_id look-east,
:text {:type plain_text,
:text East,
:emoji false},
:value e}
{:type button,
:action_id look-west,
:text {:type plain_text,
:text West,
:emoji false},
:value w}]}]}}
F24 sends the ICAO aircraft designation in their payload. A POST request to https://www4.icao.int/doc8643/External/AircraftTypes retrieves information on all aircraft, including the number of engines. The ICAO updates this list regularly.
[
{
"ModelFullName": "Dornier 328JET",
"Description": "L2J",
"WTC": "M",
"Designator": "J328",
"ManufacturerCode": "328 SUPPORT SERVICES",
"AircraftDescription": "LandPlane",
"EngineCount": "2",
"EngineType": "Jet"
},
...
]
{
"full_count":14075,
"version":4,
"2273b640":[
"4CA0FE",(id)
52.5531, (lat)
13.2362, (lon)
261, (track)
2175, (alt)
149, (spd)
"0000", (squawk)
"F-EDDT2",(radar)
"A321", (ICAO aircraft designation)
"EI-CPG",(registration)
1570910889,(timestamp)
"TXL", (start)
"DUB", (finish)
"EI339", (flight)
0, (is on the ground)
1856, (rate of climb)
"EIN33L",(ICAO ATC call signature)
0, (is it a glider?)
"EIN" (ICAO ATC call sign)
],
"22739806":[
...
]
}
Google Maps geocoding response
{
"plus_code" : {
"compound_code" : "P27Q+MC New York, NY, USA",
"global_code" : "87G8P27Q+MC"
},
"results" : [
{
"address_components" : [
{
"long_name" : "279",
"short_name" : "279",
"types" : [ "street_number" ]
},
{
"long_name" : "Bedford Avenue",
"short_name" : "Bedford Ave",
"types" : [ "route" ]
},
{
"long_name" : "Williamsburg",
"short_name" : "Williamsburg",
"types" : [ "neighborhood", "political" ]
},
{
"long_name" : "Brooklyn",
"short_name" : "Brooklyn",
"types" : [ "political", "sublocality", "sublocality_level_1" ]
},
{
"long_name" : "Kings County",
"short_name" : "Kings County",
"types" : [ "administrative_area_level_2", "political" ]
},
{
"long_name" : "New York",
"short_name" : "NY",
"types" : [ "administrative_area_level_1", "political" ]
},
{
"long_name" : "United States",
"short_name" : "US",
"types" : [ "country", "political" ]
},
{
"long_name" : "11211",
"short_name" : "11211",
"types" : [ "postal_code" ]
}
],
"formatted_address" : "279 Bedford Ave, Brooklyn, NY 11211, USA",
"geometry" : {
"location" : {
"lat" : 40.7142484,
"lng" : -73.9614103
},
"location_type" : "ROOFTOP",
"viewport" : {
"northeast" : {
"lat" : 40.71559738029149,
"lng" : -73.9600613197085
},
"southwest" : {
"lat" : 40.71289941970849,
"lng" : -73.96275928029151
}
}
},
"place_id" : "ChIJT2x8Q2BZwokRpBu2jUzX3dE",
"plus_code" : {
"compound_code" : "P27Q+MC Brooklyn, New York, United States",
"global_code" : "87G8P27Q+MC"
},
"types" : [
"bakery",
"cafe",
"establishment",
"food",
"point_of_interest",
"store"
]
},
... Additional results truncated in this example[] ...
],
"status" : "OK"
}
Mapbox response*
Openweathermap response
{:coord {:lon 13.39, :lat 52.52},
:timezone 7200,
:cod 200,
:name "Berlin",
:dt 1570910682,
:wind {:speed 1.5, :deg 190},
:id 2950159,
:weather [{:id 800,
:main "Clear",
:description "clear sky",
:icon "01n"}],
:clouds {:all 0},
:sys {:type 1,
:id 1275,
:message 0.0084,
:country "DE",
:sunrise 1570857938,
:sunset 1570897207},
:base "stations",
:main {:temp 286.81,
:pressure 1011,
:humidity 77,
:temp_min 285.37,
:temp_max 289.26},
:visibility 10000}