curl --request GET \
--url https://api.comm.com/api/v1/countries \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": 123,
"iso": "<string>",
"name": "<string>",
"nicename": "<string>",
"iso3": "<string>",
"numcode": 123,
"phonecode": 123,
"has_states": true,
"sender_id": true
}
]
}
curl --request GET \
--url https://api.comm.com/api/v1/countries \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": 123,
"iso": "<string>",
"name": "<string>",
"nicename": "<string>",
"iso3": "<string>",
"numcode": 123,
"phonecode": 123,
"has_states": true,
"sender_id": true
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Array of CountryResource
The response is of type object
.