Comments (16)
My solution is based on an old apk (1.4 something, before christmas), with mitm. The new version looks totaly differents, i'm not event sure of the right endpoint .. :\
Get the sms code
curl --request POST \
--url https://one.ofo.com/verifyCode_v2 \
--header 'content-type: application/x-www-form-urlencoded' \
--data 'tel=[PHONE]&type=1&ccc=[COUNTRY_CODE]&lng=2.37&lat=48.85'
[PHONE]
: for french number, 9 number (for 06 12 34 56 78 -> 612345678
)
[COUNTRY_CODE]
: For France: 33
other params looks mandatory but you can put what you want. I didn't check if there are a check between lat/lng and country_code
Login with sms code
curl --request POST \
--url https://one.ofo.com/api/login_v2 \
--header 'content-type: application/x-www-form-urlencoded' \
--data 'tel=[PHONE]&ccc=[COUNTRY_CODE]&lng=2.37&lat=48.85&code=[SMS_CODE]'
@ubahnverleih i ll send you a PR with a clean version of this
from wobike.
@PierrickP Wow, you made my day. Thank you ! 👍
from wobike.
I have wechat, but ofo doesn't propose me wechat ... (just facebook)
For multicycles, i used another phone number 😄 (vive Free 2€/m)
from wobike.
Oh, Ofo and bluegogo are now available via Didi App. Maybe this could be another way. http://www.didichuxing.com/en/press-news/fq2p9qrf.html
from wobike.
@kael i made some mistake on this PR, fixed by #12
from wobike.
Hi,
Thanks for this, it helps a lot.
The problem is that a previous token, provided through the official app, is invalidated if you request a new app. Which means that one phone number cannot be used for both official app and something else.
Any workaround?
from wobike.
So it is also not possible to use the official app on two devices with the same account?
from wobike.
i've runinto the device limit issue too. I used mitmproxy to get a token and used it in an app and it worked, then i deployed a second copy of it and that deployment gets errors about 'token in use on another device'
from wobike.
I guess ofo has a wechat integration. The idea would be, to use the API of the WeChat integration. I think the mobike API is also the API for WeChat. But for this we would need a chinese WeChat account i guess. (i don't get any wechat apps with my german wechat account)
from wobike.
Or is ofo integrated into Didi Chuxing?
from wobike.
So it is also not possible to use the official app on two devices with the same account?
Did not test.
from wobike.
I confirm it's not possible to use the Ofo app and in the meantime the token associated with the phone number used by the app. I use 2 different phone numbers, one for my Ofo data crawler, one for day-to-day use (although Ofo bikes are quite small lol).
from wobike.
it's possible to use the same auth token on 2 devices, but if you reauth Ofo ll invalidate your previous token.
from wobike.
hah @PierrickP I was thinking of using trello to register a 2nd account for dc-bike-finder. Or maybe google voice if that still exists and i can make an account (These are of course US options since that's where I am)
from wobike.
Hi @PierrickP , you're not running into issues that they rate limit your account? I could imagine if they receive too many request from one account, they'd block it...
from wobike.
@bodiam not yet 🤞 😄
from wobike.
Related Issues (20)
- Is anyone building a micromobility demand database?
- Ringing the lime scooters HOT 2
- Mobike error getting data HOT 2
- Add Cabify
- Lime API can't login with email HOT 3
- Bird returns made-up data HOT 2
- Sorting HOT 1
- Ringing Lime Bike, even via POST simply returns 401 Unauthorised. HOT 5
- Bolt Ringing HOT 9
- Add appa
- Add cargoroo HOT 2
- VOI Scooters API authentication HOT 25
- [Not an Issue] Redoing and universal py lib HOT 2
- Accessing Lime API by email HOT 13
- Add Check HOT 2
- Add LINK HOT 1
- Add GO [bankrupt?]
- WeShare API is no longer available HOT 1
- Add Ryde HOT 1
- Beam API not recognizing any versions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wobike.