-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing Lime API by email #253
Comments
Hello,
|
Thanks for your help. While I think I see where I went wrong I must still be missing something because I can't use the code I'm emailed to access the API. From what I can see login should work the same way but the data dictionary should only contain the code I'm emailed. So when I get the email at the bottom I should do the following?
However, this is giving a 422 error code with the following output: Specifically its giving a bad_arguement_error but there's only one arguement which looks to me like the code I'm using is wrong but I'm copying and pasting it directly from the email so I'm not sure what's wrong here. |
Can help you tommorrow. |
If you have the time, I'd really appreciate it (if not though, no worries). I've been looking at a few bike share schemes recently and this is the only one I've been having issues with. |
Sorry, completely forgot it. Will fix this later (pinky promise) |
That's no problem. As you can probably tell I'm not too time pressured. |
Yeah... Now I forgot it, butt i will hopefully get this tmorrow lol |
Now I'm here. Gimme 20min... |
So, heres what I found out:
|
I'm finding that not receiving anything makes debugging this very difficult as I don't know where to start and I find that that effectively makes it a black box (to me at least). |
Yep. Normally, if theres explicit SSL pinning, it doesnt work at all, and you can see an Connection aborted error in your sniffing software. Ill try with some older version. However, from previous posts it apperas that at least beack then sniffing on IOS is way easier. I do not have any IOS phone, or even PC, but if you do, would be cool if you could try out. |
Got it. The trick is to setup your proxy after the initial launch of the app. Here's a working script. You might need the
|
Works perfect. Thanks a million. I really appreciate your help. I'll keep this in mind for future APIs I'll be using. |
I'm able to access the lime API with a phone number but not with an email address. The command I'm using is:
requests.post("https://web-production.lime.bike/api/rider/v2/onboarding/magic-link/email=email_address@gmail.com&user_agreement_country_code=US&user_agreement_version=4")
This is giving a 404 error (same with replacing '@' with '%40')
My understanding from the documentation is that I should be emailed a token which can then be used to access the API
Can someone explain what I'm doing wrong please?
Edit:
I've also tried using the pycurl package but again, I'm not sure why it isn't working (403 error):
The text was updated successfully, but these errors were encountered: