Git Product home page Git Product logo

Comments (16)

PierrickP avatar PierrickP commented on June 6, 2024 3

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.

kael avatar kael commented on June 6, 2024 1

@PierrickP Wow, you made my day. Thank you ! 👍

from wobike.

PierrickP avatar PierrickP commented on June 6, 2024 1

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.

ubahnverleih avatar ubahnverleih commented on June 6, 2024 1

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.

PierrickP avatar PierrickP commented on June 6, 2024

@kael i made some mistake on this PR, fixed by #12

from wobike.

ooii avatar ooii commented on June 6, 2024

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.

ubahnverleih avatar ubahnverleih commented on June 6, 2024

So it is also not possible to use the official app on two devices with the same account?

from wobike.

dschep avatar dschep commented on June 6, 2024

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.

ubahnverleih avatar ubahnverleih commented on June 6, 2024

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.

ubahnverleih avatar ubahnverleih commented on June 6, 2024

Or is ofo integrated into Didi Chuxing?

from wobike.

ooii avatar ooii commented on June 6, 2024

So it is also not possible to use the official app on two devices with the same account?

Did not test.

from wobike.

kael avatar kael commented on June 6, 2024

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.

PierrickP avatar PierrickP commented on June 6, 2024

it's possible to use the same auth token on 2 devices, but if you reauth Ofo ll invalidate your previous token.

from wobike.

dschep avatar dschep commented on June 6, 2024

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.

bodiam avatar bodiam commented on June 6, 2024

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.

PierrickP avatar PierrickP commented on June 6, 2024

@bodiam not yet 🤞 😄

from wobike.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.