OK
const response = await fetch('https://ushahididocs.api.ushahidi.io/api/v3/country-codes', { method: 'GET', headers: {}, }); const data = await response.json();
{ "results": [ { "url": "text", "country_name": "text", "dial_code": "text", "country_code": "text", "allowed_privileges": [ "text" ] } ], "order": "text", "orderby": "text", "curr": "text", "next": "text", "prev": "text" }
const response = await fetch('https://ushahididocs.api.ushahidi.io/api/v3/country-codes/11', { method: 'GET', headers: {}, }); const data = await response.json();
{ "url": "text", "country_name": "text", "dial_code": "text", "country_code": "text", "allowed_privileges": [ "text" ] }