public CountrySubdivisions GetCountrySubdivisions(CountrySubdivisionsLocalFavoritesOptions options) { string response = ""; Dictionary <string, string> responseMap = doRequest(GetURL(options), "GET", null); responseMap.TryGetValue(MESSAGE, out response); return(Serializer <CountrySubdivisions> .Deserialize(response)); }
private string GetURL(CountrySubdivisionsLocalFavoritesOptions options) { string url; if (this.environment == Environments.Environment.PRODUCTION) { url = PRODUCTION_URL; } else { url = SANDBOX_URL; } url = URLUtil.AddQueryParameter(url, "Country", options.Country, false, null); return(url); }