getcity

GET

Get City

Returns a list of valid cities available for LBA (Location Based Advertising).

 

To get the list of available cities 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/cities

 

 

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 city list.
results
array
An array of city information

 

results[]
struct
A single lba city information

 

cityId
integer
LBA city identifier.
name
string
LBA city name.
latitude
double
LBA city latitude.
longitude
double
LBA city longitude.

 

 

Response (Example)

HTTP Code Response
200
{
    "success": true,
    "totalResults": 3,
    "results": [
        {
            "cityId": 4,
            "name": "Jakarta",
            "latitude": -6.17511,
            "longitude": 106.865039
        },
        {
            "cityId": 9,
            "name": "Medan",
            "latitude": 3.595196,
            "longitude": 98.672223
        },
        {
            "cityId": 8,
            "name": "Surabaya",
            "latitude": -7.257472,
            "longitude": 112.752088
        }
    ]
}
401
{
    "fault": {
        "faultstring": "Invalid Access Token",
        "detail": {
            "errorcode": "keymanagement.service.invalid_access_token"
        }
    }
}

Resource URL

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

Header Parameters


Name Values Description
Content-Type
(required)

The content-type should be in json format

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