WoBike
WoBike copied to clipboard
Lime API
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?
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"}'
Btw, in future, write what request are you actually sending, not only description, for easier debugging ;)
I tried it exactly this way but I only get the cookie (with the limebike web session) back and not the token.
Try posting not only the phone number and token, but also a platform parameter like platform:iOS.