Country
Get country¶
Attempt to get a country
Request¶
Request body¶
This endpoint does not have a request body
curl --location 'https://example.juno.one/v1/country' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJ0ZXN0IiwiZXhwIjoxNjg1NjkwNzczfQ.OoK6poNwkZ_7UR3MbE7zz85prWFsp30z07MocVNlJ1ui5SzbvQi4f4UgvwMAG6FfHi2HJMJ7Rtla1hyxRVxUUg' \
--header 'X-tenantID: example' \
--header 'Zone: GMT'
import requests
url = "https://example.juno.one/v1/country"
payload = {}
headers = {
'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJ0ZXN0IiwiZXhwIjoxNjg1NjkwNzczfQ.OoK6poNwkZ_7UR3MbE7zz85prWFsp30z07MocVNlJ1ui5SzbvQi4f4UgvwMAG6FfHi2HJMJ7Rtla1hyxRVxUUg',
'X-tenantID': 'example',
'Zone': 'GMT'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
val client = OkHttpClient()
val request = Request.Builder()
.url("https://example.juno.one/v1/country")
.addHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJ0ZXN0IiwiZXhwIjoxNjg1NjkwNzczfQ.OoK6poNwkZ_7UR3MbE7zz85prWFsp30z07MocVNlJ1ui5SzbvQi4f4UgvwMAG6FfHi2HJMJ7Rtla1hyxRVxUUg")
.addHeader("X-tenantID", "example")
.addHeader("Zone", "GMT")
.build()
val response = client.newCall(request).execute()
Response¶
Successful response of get country has the status 200
with following response body: