1

Driver Login ApI

Тема: Driver Login ApI

We are developing the new mobile app for the drivers. Which API we have to use to login as driver using mobile number.

2

Driver Login ApI

Re: Driver Login ApI

https://hst-api.wialon.com/wialon/ajax.html?svc=resource/driver_operate&params={"phonenumber":"+919500502190","password":"******","callmode":"status"}


I am using the above request to driver login. but it's returning {error:1}

3

Driver Login ApI

Re: Driver Login ApI

Hello. Try to escape params according to application/x-www-form-urlencoded format, like:

https://hst-api.wialon.com/wialon/ajax.html?svc=resource%2Fdriver_operate&params=%7B%22phonenumber%22%3A%22%2B919500502190%22%2C%22password%22%3A%22******%22%2C%22callmode%22%3A%22status%22%7D
4

Driver Login ApI

Re: Driver Login ApI

Rual still no luck i am getting the same error. do we need to pass the sid for the api.

5

Driver Login ApI

(18/10/2019 17:30:32 отредактировано rual)

Re: Driver Login ApI

Sorry for previous wrong answer (was removed).

Your request is almost valid. Parameter names are case-sensitive, replace phonenumber with phoneNumber and callmode with callMode.

sid is required if callMode != status.

6

Driver Login ApI

Re: Driver Login ApI

rual  it's working perfectly. thumbs up mate.