GetUserLocation

GET

Get User Location

Returns the location of your Indosat Ooredoo subscribers.

 

To get the location details of your subscriber, every request must pass in the access_token value in the header. For more information on how to generate your access_token, please refer to this section.

 

 

Request

Method URL
GET https://blinke-stage.apigee.net/io/users/mobile_number/location

 

 

Request Headers

Name Description Mandatory
Authorization Bearer access_token Yes
Content-Type application/json Yes

 

 

Path Parameter

Name Description
mobile_number*
string
The Indosat Ooredoo subscriber's mobile phone number (e.g. valid prefix number: 08xx – ISAT Number).

 

 

Response

Result of the successful request contains following information:

Name Description
location
struct
Subcriber location information

 

latitude
string
Subcriber latitude position.
longitude
string
Subcriber longitude position.
modified
string
The string represents date/time when the location is detected. Date time in ISO 8601 format.

 

 

 

Response (Example)

HTTP Code Response
200
{
    "location": {
        "latitude": "-6.18122",
        "longitude": "106.81134"
    },
    "modified": "1509468589549"
}
401
{
    "fault": {
        "faultstring": "Invalid Access Token",
        "detail": {
            "errorcode": "keymanagement.service.invalid_access_token"
        }
    }
}

 

 

Sandbox limitation
  • Please use the following mobile_number for sandbox environment:

    Mobile Phone Latitude Longitude
    085888603300 -6.18022 106.80134
    08558063720 -6.18022 106.80134
    085798771688 -6.18022 106.80134
    08558567242 -6.18022 106.80134
    085798771666 -6.18022 106.80134

Resource URL

https://blinke-stage.apigee.net /io/users/{msisdn}/location

Header Parameters


Name Values Description
Content-Type
(required)

JSON

Authorization
(required)

Bearer access_token

Request Body

HTTP Basic

OAuth 2.0

API Key

Reset

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Resource Summary

Security

Working...