Git Product home page Git Product logo

Comments (2)

robbi5 avatar robbi5 commented on May 26, 2024

API lives at: https://ipa.passion.bike/s/

After creating an account and verifying the mobile number at https://ipa.passion.bike/s/validateOtp you get the Authorization token in the response as jwtToken.

To get the bikes:
POST https://ipa.passion.bike/s/getBikesWithYuluZonesWithPolygonsV1
Header: Authorization: Bearer <contents of jwtToken>
Body:

{
    "appVersion": "iOS_2.5.32",
    "currentlatitude": 19.14084917906153,
    "currentlongitude": 72.91730582714081,
    "latitude": 19.14084917906153,
    "longitude": 72.91730582714081
}

Response (shortened):

{
    "data": {
        "bike_with_yulu": [
            {
                "bikes_count": 1,
                "description": "IIT Campus Hub",
                "distance": 1.023326773491278,
                "fleet_id": 1,
                "geozone_id": 0,
                "id": 2250,
                "is_active": 1,
                "is_drop_zone": 0,
                "label": "300024",
                "latitude": "19.1346191",
                "longitude": "72.910136",
                "marker_lat": "19.1346191",
                "marker_lon": "72.910136",
                "marker_type": "parking_1",
                "modified_by_user_id": 205994,
                "modified_by_user_time": 1545638519,
                "organisation_id": 1,
                "yulu_zone_id": 2244,
                "zone_accuracy_radius": 0.05
            }
        ],
        "bikes_out": [
            {
                "bike_id": "1004361",
                "distance": 0.5347795248218808,
                "latitude": "19.137753333333333",
                "longitude": "72.913409999999999"
            },
            {
                "bike_id": "1004313",
                "distance": 0.9940966317078287,
                "latitude": "19.135351666666665",
                "longitude": "72.909843333333328"
            }
        ],
        "operationsZones": [],
        "polygons": [],
        "toShowRequestYulu": false
    },
    "message": "success",
    "status": 200
}

from wobike.

ishaangarg avatar ishaangarg commented on May 26, 2024

https://ipa.passion.bike/s/validateOtp/

How to create an account, auth & verify phone number from this?

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.