Code example for Address

Methods: getCountryCode

0
	public static String getLatestProjectsListUri() {
		return API_BASE_URL + "/project/latest/?format=json&lang=" + LanguageHelper.getPreferredLanguageCode();
	} 
	 
	public static String getCurrentCountryProjectsListUri(Address address) {
		return API_BASE_URL + "/project/by-country/" + address.getCountryCode() + "/?format=json";
	} 
	 
	public static String getProjectViewUriById(int projectId) {
		return API_BASE_URL + "/project/" + String.valueOf(projectId);
	} 
	 
	public static String getProjectViewUriBySlug(String language_code, String slug) {
		return API_BASE_URL + "/project/" + language_code + "/" + slug;
	} 
	 
	public static String getRandomProjectViewUri() {
		return API_BASE_URL + "/project/random/?format=json&lang=" + LanguageHelper.getPreferredLanguageCode();
	} 
	 
	public static String getProjectUrl(I4pProjectTranslation project) {