ubahnverleih / WoBike

Documentation of Bike Sharing APIs 🚴🛴🛵
958 stars 131 forks source link

No longer seeing bird ID #59

Open kenshin088 opened 6 years ago

kenshin088 commented 6 years ago

Just started happening a few hours ago. API no longer pulls the bird scooter ID. Anyway around this?

kylespannuth commented 6 years ago

I haven't even been able to pull a token after the first POST-request

kenshin088 commented 6 years ago

You're doing something wrong then. I'm pulling tokens just fine. Check your code again.

kylespannuth commented 6 years ago

I'm using postman to send the POST request and I've made sure I have all the headers and the body correct. This is the exact response I get.

screen shot 2018-10-19 at 5 17 52 am
kenshin088 commented 6 years ago

You are not getting a token because you already registered that email before. The token is only generated once. If you try to request a token with an email that has been previously registered, it only renews the token but doesn't display the actual value. Try registering a different email and you will get a new token.

kylespannuth commented 6 years ago

Here is something I have found looking about. If you do a put request with a certain id you get a lot of data about the bird.

screen shot 2018-10-19 at 5 38 31 am
kenshin088 commented 6 years ago

How are you finding the different headers like 'chirp'?

Can you see info like last ridden or last GPS?

kylespannuth commented 6 years ago

I found it from a lot googling haha. Try running the the PUT request, you get a lot of data back including those

kenshin088 commented 6 years ago

Can you show me what exactly I'm supposed to type in? I don't understand how the PUT request works fully

kylespannuth commented 6 years ago

That last screenshot was the body and this the header of the PUT

screen shot 2018-10-19 at 7 52 09 am
kenshin088 commented 6 years ago

Any idea if we'll be getting the bird codes back??

bodiam commented 6 years ago

Hi all, I'm a developer of Bikeradar (https://developer.bikeradar.io), and I get the Bird bikes, including the ids back.

You can use https://api.bikeradar.io/bikes?lat=38.923642&lng=-77.029976&providers=BRD&maxResults=50 to get the relevant bikes bike, including the ids.

    {
        "position": {
            "lat": 38.86436833333333,
            "lng": -77.05072833333334
        },
        "providerId": "BRD",
        "attributes": {
            "bikeId": "fadb0aba-6a5b-4316-a3cf-d851a7107ced",
            "system": "DOCKLESS",
            "type": "ELECTRICAL",
            "batteryLevel": 0
        },
        "recommended": false
    },
tejasavkhattar commented 5 years ago

The response of /nearby endpoint contains a key "code" for every bird. I am getting an empty string for every bird. Can someone help me how can i get the value for this field. Thanks in advance