Skip to content

Bike Occupied, QR #2

@S60W79

Description

@S60W79

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions