Mendapatkan daftar negara.
| Attribute | Value |
|---|---|
| Method | GET |
https://8stars.api.digiswitch.id/v1/user/api/hotel/content/country
Sign additional value: hotel.content
{info} Tidak ada parameter tambahan selain parameter wajib. Parameter
langbersifat opsional (default:id).
https://8stars.api.digiswitch.id/v1/user/api/hotel/content/country?username=YOUR_USERNAME&sign=96e1028f6beaa817ee3670a39c01c69d&code=skuhotel
| Parameter | Deskripsi | Tipe Data | Wajib |
|---|---|---|---|
| username | Username yang didapatkan dari menu atur koneksi API |
String | Ya |
| sign | Signature dengan formula md5(username + apiKey + "hotel.content") |
String | Ya |
| code | Kode produk hotel | String | Ya |
| lang | Bahasa response. Default: id |
String | Tidak |
data berisi array objek Negara.
{
"message": "Sukses",
"rc": "00",
"data": [
{
"name": "Amerika Serikat",
"code": "US"
},
{
"name": "Indonesia",
"code": "ID"
}
]
}
| Parameter | Deskripsi | Tipe Data |
|---|---|---|
| name | Nama negara | String |
| code | Kode negara (ISO alpha-2) | String |
Hanya ada 1 test case untuk endpoint Negara.
https://8stars.api.digiswitch.id/v1/user/api/hotel/content/country?is_testing=true&username=YOUR_USERNAME&sign=96e1028f6beaa817ee3670a39c01c69d&code=skuhotel