Android Question Need an example of using the Request API

Lakhtin_V

Active Member
Licensed User
Longtime User
I'm new to using API technologies, where you can see a complete example that allows you to make a request to a production server and get a response. I hope the example will be created using the simplest WORKING WEB server. I can't find an example of how to start a communication session and get an answer all in one simple example with comments.
 

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
Perhaps the reason for this is because the form of the requests for each server are different.

How about this example ?

What is the API for your working web server?
 
Upvote 0

Lakhtin_V

Active Member
Licensed User
Longtime User
What is the API for your working web server?
Request and response for creating a working session using a token
Example query

params={
"token":"2fe8024e0ab91aa6c8ed82717b71bddcECDC362358DF7D90986F5173D405CD0D42DE7B38"
}

Example response
{
"host": "212.98.173.107",
"eid": "d1cb60897768780f846df7ab2400eb5f",
"tm": 1358415984,
"user": {
"nm": "wialon_test",
"cls": 1,
"id": 50935,
"prp": {
"addr_provider": "map_visicom",
"cfmt": "0",
"city": "Mexico",
"dst": "-1",
"fpnl": "monitoring",
"language": "ru",
"show_log": "0",
"tz": "134232128",
"user_settings_hotkeys": "1",
...
},
"token": "{"app":"Wialon Hosting","ct":1443682655,"at":1443682655,"dur":2592000,"fl":-1,"p":"{}","items":[]}",
"th": "2fe8024e0ab91aa6c8ed82717b71bddcECDC362358DF7D90986F5173D405CD0D42DE7B38",
"crt": 0,
"bact": 50936,
"fl": 6,
"hm": "",
"uacl": 2097795
},
"classes": {
"avl_hw": 4,
"avl_resource": 3,
"avl_retranslator": 7,
"avl_route": 6,
"avl_unit": 2,
"avl_unit_group": 5,
"user": 1
},
"features": {
"unlim": 1,
"svcs": {
...
}
}
}

Your example uses the xChart library where can I download it?
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top