WoBike icon indicating copy to clipboard operation
WoBike copied to clipboard

Lime API

Open pythonlea opened this issue 5 years ago • 4 comments

I'm trying to send the OTP code back but I get the following error message: "You must specify an email or phone number" So how can I get the Bearer TOKEN?

pythonlea avatar Nov 01 '19 15:11 pythonlea

Yhh. Just like in an examples in repo. In your POST you need otp and email/phone Field

curl --request POST
--cookie-jar -
--url 'https://web-production.lime.bike/api/rider/v1/login'
--header 'Content-Type: application/json'
--data '{"login_code": "123456", "phone": "+33612345678"}'

rrozek avatar Nov 01 '19 18:11 rrozek

Btw, in future, write what request are you actually sending, not only description, for easier debugging ;)

rrozek avatar Nov 01 '19 18:11 rrozek

I tried it exactly this way but I only get the cookie (with the limebike web session) back and not the token.

pythonlea avatar Nov 01 '19 20:11 pythonlea

Try posting not only the phone number and token, but also a platform parameter like platform:iOS.

jhilgert avatar Nov 03 '19 18:11 jhilgert