GetLocation

GET

Get Location

Returns a list of valid locations available for LBA (Location Based Advertising). Locate on where you would like your message to be distributed.

 

To get the list of available locations for LBA, 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/lba/locations

 

 

Request Headers

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

 

 

Response

Result of the successful request contains following information:

Name Description
success
boolean
Return true if success.
totalResults
integer
Total number of items in the location list.
results
array
An array of location information

 

results[] struct A single lba location information

 

locationId
integer
LBA location identifier.
name
string
LBA city name.
address
string
Address of the location.
latitude
double
LBA location latitude.
longitude
double
LBA location longitude.
city
struct
The city where the location is located. For more details, please refer to this section.

 

 

Response (Example)

HTTP Code Response
200
{
    "success": true,
    "totalResults": 3,
    "results": [
        {
            "locationId": 167,
            "name": "Grand Indonesia Eastmall",
            "address": "Jl. Teluk Betung No.43E, RT.1/RW.5, .....",
            "latitude": -6.1953242,
            "longitude": 106.8192634,
            "city": {
                "cityId": 4,
                "name": "Jakarta",
                "latitude": -6.17511,
                "longitude": 106.865039
            }
        },
        {
            "locationId": 416,
            "name": "Grand Indonesia Westmall",
            "address": "Jl. Teluk Betung I No.45A, RT.1/RW.5, .....",
            "latitude": -6.1948117,
            "longitude": 106.8196308,
            "city": {
                "cityId": 4,
                "name": "Jakarta",
                "latitude": -6.17511,
                "longitude": 106.865039
            }
        },
        {
            "locationId": 89,
            "name": "Indosat KPPTI",
            "address": "Jl. Budi Kemuliaan II No.8, RT.2/RW.3, .....",
            "latitude": -6.1800863,
            "longitude": 106.8196017,
            "city": {
                "cityId": 4,
                "name": "Jakarta",
                "latitude": -6.17511,
                "longitude": 106.865039
            }
        },
        {
            "locationId": 169,
            "name": "UOB Plaza",
            "address": "Jalan M.H. Thamrin Kav 8-10 RT. 14 / RW. 20, .....",
            "latitude": -6.1999876,
            "longitude": 106.8207923,
            "city": {
                "cityId": 4,
                "name": "Jakarta",
                "latitude": -6.17511,
                "longitude": 106.865039
            }
        },
        {
            "locationId": 170,
            "name": "Wisma 46 Kota BNI",
            "address": "Jl. Jend. Sudirman No.Kav. 1, RT.10/RW.11, .....",
            "latitude": -6.2010809,
            "longitude": 106.8189423,
            "city": {
                "cityId": 4,
                "name": "Jakarta",
                "latitude": -6.17511,
                "longitude": 106.865039
            }
        }
    ]
}
401
{
    "fault": {
        "faultstring": "Invalid Access Token",
        "detail": {
            "errorcode": "keymanagement.service.invalid_access_token"
        }
    }
}

Resource URL

https://blinke-stage.apigee.net /lba/locations

Header Parameters


Name Values Description
Content-Type
(required)

The content-type should be in json format

Authorization
(required)

Bearer<space>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...