/
Mobidi Server Query API
Mobidi Server Query API
A token that is granted to use this function is required. You may use this service with any client that can call REST API's and parse JSON results.
Query | |
---|---|
Description | Returns array of records corresponding to the query. Please visit technical page of MobidiQueryManagerHandler for all functions with parameter and response types. |
İstek | [MOBIDISERVERURL]/MobidiQueryManagerHandler?op=Query&queryObject=[MobidiQuery_JSON]&UserSession=[TOKEN]
|
HttpMethod | GET, POST |
Error Types | 401 Unauthorized access / Access denied 403 Forbidden 511 Network Authentication Required 501 Server Error |
Result | Array of MobidiEntry objects |
Request Example | var myQuery= { startDate:"20180114", //From 14 January 2018 endDate:"-1w", // Up to 1 week ago startIndex:0, //from the first record endIndex:20 //Up to the 20th record } var callBackFunction= function(data) { alert(data.length;) } $.post('[MOBIDIServerUrl]/MobidiQueryManagerHandler?op=Query', { 'queryObject': JSON.stringify(myQuery), }, callBackFunction, 'json') |
Result Example | [ { record: { id:"..." , layer_id:"..."} , attributes: [ {id:"...",name:"..."}] }, { record: { id:"..." , layer_id:"..."} , attributes: [ {id:"...",name:"..."}] }, { record: { id:"..." , layer_id:"..."} , attributes: [ {id:"...",name:"..."}] } ] |
Sample Applications |