Comments (13)
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.
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.
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.
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.
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
from wobike.
Thanks @PierrickP !! I'm already registered and I still receive the same response... :/
Is it still working?
from wobike.
@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.
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.
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.
You probably use an old auth token.
I don't think tokens are IP restricted
from wobike.
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.
Yup. I registered on my phone. logged out. logged in with it as documented in Ofo.md.
from wobike.
Ofo has closed down
from wobike.
Related Issues (20)
- 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
- Dead link in Tier.md HOT 2
- Is there any way to unlock a scooter/bike with an api call (doesn't matter which provider) HOT 1
- Voi: 401 error HOT 1
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.