webapp.Countries()

This class provides a methd of listing a webapp's list of assigned countries.

List the countries assigned to a web app

var webappCountries = new BCAPI.Models.WebApp.Country("WEBAPP-NAME");
var response = webappCountries.fetch();
response.done(function () {
    _.each(webappCountries.get("items"), function (countryCode) {
        console.log(countryCode);
    });
}).fail(function (jqXHR) {
    console.log("Request failed.");
    console.log("Error code: " + jqXHR.status);
    console.log("Error text: " + jqXHR.statusText);
    console.log("Response text: " + jqXHR.responseText);
});