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

RetrieveCategoriesByQueryString() public method

Performs the category methods: Retrieve a list of all or part of our category tree, Retrieve a list of Trade Me Motors used car categories, Retrieve a list of Trade Me Motors motorbike categories, using the "query" string provided - should be the "Categories/UsedCars.xml" part of the url it shouldn't include "http://api.trademe.co.nz/v1/".

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveCategoriesByQueryString ( string query ) : Category
query string The query string that will be added to the base url and used to connect to the API with.
return Category
        public Category RetrieveCategoriesByQueryString(string query)
        {
            var getRequest = _connection.UnauthenticatedConnection(query);
            var xml = getRequest.ToString();

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