Api session event logic search: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 13: | Line 13: | ||
| REQUIRED | | REQUIRED | ||
| (Enumeration) | | (Enumeration) | ||
| Map | | [[Map Type]] | ||
| CURRENT or MAQUETTE | | CURRENT or MAQUETTE | ||
|- | |- | ||
| Line 19: | Line 19: | ||
| REQUIRED | | REQUIRED | ||
| (String) | | (String) | ||
| Query | | Search Query | ||
| | | | ||
|} | |} | ||
| Line 35: | Line 35: | ||
===Example POST=== | ===Example POST=== | ||
Curl example POST | Curl example POST | ||
<syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/session/event/logic/search/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "CURRENT", "Query" ]' | <syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/session/event/logic/search/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "CURRENT", "Search Query" ]' | ||
</syntaxhighlight> | </syntaxhighlight> | ||
JavaScript example POST | JavaScript example POST | ||
| Line 41: | Line 41: | ||
method: "POST", | method: "POST", | ||
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" }, | headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" }, | ||
body: '[ "CURRENT", "Query" ]' | body: '[ "CURRENT", "Search Query" ]' | ||
}; | }; | ||
fetch("https://engine.tygron.com/api/session/event/logic/search/", options) | fetch("https://engine.tygron.com/api/session/event/logic/search/", options) | ||
Revision as of 15:33, 10 November 2026
API Endpoint: api/session/event/logic/search/
Description: Search for Neighborhood, Building or Address.
| Index | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (Enumeration) | Map Type | CURRENT or MAQUETTE |
| 1 | REQUIRED | (String) | Search Query |
Response Codes
| Response Code: | Description |
|---|---|
| 200 | HashMap (HashMap) |
| 300-600 | Codes Overview |
Example POST
Curl example POST
curl 'https://engine.tygron.com/api/session/event/logic/search/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "CURRENT", "Search Query" ]'JavaScript example POST
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
body: '[ "CURRENT", "Search Query" ]'
};
fetch("https://engine.tygron.com/api/session/event/logic/search/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));