Git Product home page Git Product logo

Comments (13)

dschep avatar dschep commented on May 26, 2024 2

They're restricted somehow, even if it's not explicitly by IP. I've run into that as well, so I used a 2nd phone number (via google voice) to make a 2nd account and generate a token for use in my script so that I could use my primary account on my phone.

from wobike.

PierrickP avatar PierrickP commented on May 26, 2024 1

Missing content-type

try

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://one.ofo.com/verifyCode_v2",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "tel=6XXXXXXX&type=1&ccc=33&lng=2.37&lat=48.85",
  CURLOPT_HTTPHEADER => array(
    "content-type: application/x-www-form-urlencoded"
  ),
));

from wobike.

galcopi avatar galcopi commented on May 26, 2024 1

Yes... It seems to be a restriction... I tried with a second phone number and I receive the same answer: You logged in ofo on another device.

from wobike.

dschep avatar dschep commented on May 26, 2024 1

oh wow. that's interesting. I was able to do it if i didn't use it for too long on the phone (ie: create account, grabbing the creds, erase app data on phone)

from wobike.

PierrickP avatar PierrickP commented on May 26, 2024

Your phone number should be registered before (it's not documented :\ )
Use your phone to create your account, then use the documentation to get the token

⚠️ one token per account, if you login by api, you ll be loggued out on your phone.

from wobike.

galcopi avatar galcopi commented on May 26, 2024

Thanks @PierrickP !! I'm already registered and I still receive the same response... :/

Is it still working?

from wobike.

PierrickP avatar PierrickP commented on May 26, 2024

@galcopi yes, tried right now with my personal account.
Can you copy/past me your request ? (hide your phone num). What is your country ?

How did you register ?

from wobike.

galcopi avatar galcopi commented on May 26, 2024

Ouch!

Sure @PierrickP , this is my request:

curl_setopt_array($curl, array(
CURLOPT_URL => "https://one.ofo.com/verifyCode_v2?tel=6XXXXXXXX&type=1&ccc=34&lng=41.39&lat=-3.46",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => array(
"cache-control: no-cache",
),
));

I've registered with my phone months ago! I already use the service!

Country: Spain.

Thank you sooooooo much 😄

from wobike.

galcopi avatar galcopi commented on May 26, 2024

Thaaaaaaaaaank youuuu so much @PierrickP !

You were right! It's know working.

Just one more thing:

The response I'm receiving when I try to get /nearbyofoCar is:

{"errorCode":10003,"msg":"You logged in ofo on another device.","values":{}}

Any comment?? 😃

from wobike.

PierrickP avatar PierrickP commented on May 26, 2024

You probably use an old auth token.
I don't think tokens are IP restricted

from wobike.

galcopi avatar galcopi commented on May 26, 2024

I see... Did you Register the account via your phone, then you log out from your phone, and then you get the token via this doc?

from wobike.

dschep avatar dschep commented on May 26, 2024

Yup. I registered on my phone. logged out. logged in with it as documented in Ofo.md.

from wobike.

W1MMER avatar W1MMER commented on May 26, 2024

Ofo has closed down

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.