cybre-finn / nextbike-api-reverse-engineering

nextbike api reverse engineered
32 stars 3 forks source link

Bike Occupied, QR #2

Open S60W79 opened 3 years ago

S60W79 commented 3 years ago

Hi, first: thank you very much for this documentation, it helped me a lot creating the "NUTbikes" App for Ubuntutouch. There are a few things I noticed, using the API: 1) There is the chance to occupy a bike so it stands in the area being unavailable for most the users. If you try to rent thoose bikes with the API you'll get the following return: {"server_time:[unix-stemp], "error":{"code":308, "message":"bike [bikenumber] is occupied", "reference":"[referencecode]"}} The return comes with the status code 423. This circumstand is good to know, because I didn't respect this case and programmed my app to display, this is just a logi-in-error. 2)For thoose, trying to implement QR code scanning, the bikes usually have the QR-Code pattern http://nxtb.it/[bikenumber] 3) When logginng in you may also send the mobile number as a string. The advantage: sending a number, begining with a '+' is also accepted.

S60W79 commented 3 years ago

Btw.: It's not that importend, but if anyone has an Idia how to occupy a bike, It would also be nice (: