$(function () {
$.getJSON(
"http://www.ringcentral.com/api/index.php?cmd=getCountries&typeResponse=json",
function (data) {
var $test = $("#test");
$.each(data.result, function(country) {
$test.append("<option>" + country.name + "</option>");
})
}
);
});