public RetrieveLegalNoticeForCategory ( string categoryNumber ) : LegalNotice | ||
categoryNumber | string | The category number for which you wish to see the legal notice for. /// The number of the category to retrieve the legal notice for. This must be a leaf category /// (for example, you cannot view the legal notice for Business, Farming and Industry, but you can /// for Business, Farming and Industry > Carbon credits). |
Résultat | LegalNotice |
public LegalNotice RetrieveLegalNoticeForCategory(string categoryNumber)
{
var url = String.Format(Constants.Culture, "{0}/{1}/{2}{3}", Constants.CATEGORIES, categoryNumber,
Constants.LEGALNOTICE, Constants.XML);
var getRequest = _connection.UnauthenticatedConnection(url);
var xml = getRequest.ToString();
return Deserializer<LegalNotice>.Deserialize(new LegalNotice(), xml);
}