TradeMe.Api.Client.CatalogueMethods.RetrieveAttributesForCategory C# (CSharp) Method

RetrieveAttributesForCategory() public method

Performs the category method: Retrieves the list of attributes which are applicable to a specific category. GET

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveAttributesForCategory ( string categoryNumber ) : Attributes
categoryNumber string The category number for which you wish to see the attributes for. /// This must be a leaf category (for example, you cannot view the attributes for Computers > Desktops, /// but you can for Computers > Desktops > CRT monitors).
return Attributes
        public Attributes RetrieveAttributesForCategory(string categoryNumber)
        {
            var url = String.Format(Constants.Culture, "{0}/{1}/{2}{3}", Constants.CATEGORIES, categoryNumber,
                                    Constants.ATTRIBUTES, Constants.XML);

            var getRequest = _connection.UnauthenticatedConnection(url);
            var xml = getRequest.ToString();

            return Deserializer<Attributes>.Deserialize(new Attributes(), xml);
        }