C# Class TradeMe.Api.Client.CatalogueMethods

The CatalogueMethods class contains the methods requried for making calls to the API related to the catalogue.
ファイルを表示 Open project: TradeMe/trade-me-api-wrapper Class Usage Examples

Public Methods

Method Description
CatalogueMethods ( ConnectionMethods connect ) : System

Initializes a new instance of the CatalogueMethods class.

GetComplaintSubjects ( ) : ComplaintSubjectCollection

Performs the category method: Retrieves a list of possible complaint subjects. This is used in conjunction with the send a complaint API. GET

DOES NOT REQUIRE AUTHENTICATION.

GetMotorbikeMakes ( ) : MotorbikeMakeCollection

Performs the category method: Retrieves a list of all motorbike makes. Can be used when searching. GET

DOES NOT REQUIRE AUTHENTICATION.

RetrieveAttributesForCategory ( string categoryNumber ) : Attributes

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

DOES NOT REQUIRE AUTHENTICATION.

RetrieveBluRayIds ( ) : BluRayValidations

Performs the category method: Returns a the list of Blu-ray catalogue ID numbers. You can use this list to validate the catalogue ID before listing a Blu-ray. GET

DOES NOT REQUIRE AUTHENTICATION.

RetrieveCategories ( ) : Category

Performs the category methods: Retrieve a list of all or part of our category tree.

DOES NOT REQUIRE AUTHENTICATION.

RetrieveCategoriesById ( string id ) : Category

Performs the category methods: Retrieve a list of all or part of our category tree. Does this by using the id string provided - should be the id of the category you wish to retrieve.

DOES NOT REQUIRE AUTHENTICATION.

RetrieveCategoriesByQueryString ( string query ) : Category

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.

RetrieveDurationOptionsForCategory ( string categoryNumber ) : ListingDurations

Performs the category method: Retrieves the default duration and the duration options that are available for listings in a specific category. GET

DOES NOT REQUIRE AUTHENTICATION.

RetrieveDvdIds ( ) : DvdValidations

Performs the category method: Returns a list of DVD catalogue ID numbers. You can use this list to validate the catalogue ID before listing a DVD. GET

DOES NOT REQUIRE AUTHENTICATION.

RetrieveFeesForCategory ( string categoryNumber ) : ListingFees

Performs the category method: Retrieves a list of fees for a specific category. GET

DOES NOT REQUIRE AUTHENTICATION.

RetrieveJobCategories ( ) : JobCategories

Performs the category method: Retrieve a list of Trade Me Jobs categories.

DOES NOT REQUIRE AUTHENTICATION.

RetrieveLegalNoticeForCategory ( string categoryNumber ) : LegalNotice

Performs the category method: Retrieves the legal notice that the user is required to agree to before listing. GET

DOES NOT REQUIRE AUTHENTICATION.

RetrieveLocalities ( string query ) : LocalityCollection

Performs the Localities methods: three-tier locality dataset, two-tier locality dataset,

using the "query" string provided - should be the "Localities.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

DOES NOT REQUIRE AUTHENTICATION.

RetrieveLocalitiesThreeTier ( ) : LocalityCollection

Performs the Localities methods: three-tier locality dataset

Returns three-tier locality hierarchy of regions, districts and their respective suburbs. These values are used in Trade Me Property, Trade Me Jobs and Services.

DOES NOT REQUIRE AUTHENTICATION.

RetrieveLocalitiesTwoTier ( ) : LocalityCollection

Performs the Localities method: two-tier locality dataset.

Returns list of towns used in member registration. This information is displayed on member profile as “suburb” and also on listings where the approximate location of goods is important, such as in Trade Me Motors.

DOES NOT REQUIRE AUTHENTICATION.

RetrieveMotorBikeCategories ( ) : Category

Performs the category methods: Retrieve a list of Trade Me Motors motorbike categories.

DOES NOT REQUIRE AUTHENTICATION.

RetrieveTravelLocalities ( ) : LocalityCollection

Performs the category method: Returns a list of districts and suburbs as used by TradeMe travel. GET

DOES NOT REQUIRE AUTHENTICATION.

RetrieveUsedCarCategories ( ) : Category

Performs the category methods: Retrieve a list of Trade Me Motors used car categories.

DOES NOT REQUIRE AUTHENTICATION.

SearchBluRayCatalog ( String search = "" ) : MovieTitles

Performs the category method: Searches the Trade Me Blu-ray catalogue for movie titles. GET

DOES NOT REQUIRE AUTHENTICATION.

SearchDvdCatalog ( String search = "" ) : MovieTitles

Performs the category method: Searches the Trade Me DVD catalogue for movie titles. GET

DOES NOT REQUIRE AUTHENTICATION.

Method Details

CatalogueMethods() public method

Initializes a new instance of the CatalogueMethods class.
public CatalogueMethods ( ConnectionMethods connect ) : System
connect ConnectionMethods A ConnectionMethods class used to make calls to the API
return System

GetComplaintSubjects() public method

Performs the category method: Retrieves a list of possible complaint subjects. This is used in conjunction with the send a complaint API. GET

DOES NOT REQUIRE AUTHENTICATION.
public GetComplaintSubjects ( ) : ComplaintSubjectCollection
return ComplaintSubjectCollection

GetMotorbikeMakes() public method

Performs the category method: Retrieves a list of all motorbike makes. Can be used when searching. GET

DOES NOT REQUIRE AUTHENTICATION.
public GetMotorbikeMakes ( ) : MotorbikeMakeCollection
return MotorbikeMakeCollection

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

RetrieveBluRayIds() public method

Performs the category method: Returns a the list of Blu-ray catalogue ID numbers. You can use this list to validate the catalogue ID before listing a Blu-ray. GET

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveBluRayIds ( ) : BluRayValidations
return BluRayValidations

RetrieveCategories() public method

Performs the category methods: Retrieve a list of all or part of our category tree.

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveCategories ( ) : Category
return Category

RetrieveCategoriesById() public method

Performs the category methods: Retrieve a list of all or part of our category tree. Does this by using the id string provided - should be the id of the category you wish to retrieve.

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveCategoriesById ( string id ) : Category
id string The id of the category you wish to retrieve.
return Category

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

RetrieveDurationOptionsForCategory() public method

Performs the category method: Retrieves the default duration and the duration options that are available for listings in a specific category. GET

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveDurationOptionsForCategory ( string categoryNumber ) : ListingDurations
categoryNumber string The number of the category to retrieve durations for.
return ListingDurations

RetrieveDvdIds() public method

Performs the category method: Returns a list of DVD catalogue ID numbers. You can use this list to validate the catalogue ID before listing a DVD. GET

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveDvdIds ( ) : DvdValidations
return DvdValidations

RetrieveFeesForCategory() public method

Performs the category method: Retrieves a list of fees for a specific category. GET

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveFeesForCategory ( string categoryNumber ) : ListingFees
categoryNumber string The number of the category to retrieve fees for.
return ListingFees

RetrieveJobCategories() public method

Performs the category method: Retrieve a list of Trade Me Jobs categories.

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveJobCategories ( ) : JobCategories
return JobCategories

RetrieveLegalNoticeForCategory() public method

Performs the category method: Retrieves the legal notice that the user is required to agree to before listing. GET

DOES NOT REQUIRE AUTHENTICATION.
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).
return LegalNotice

RetrieveLocalities() public method

Performs the Localities methods: three-tier locality dataset, two-tier locality dataset,

using the "query" string provided - should be the "Localities.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveLocalities ( string query ) : LocalityCollection
query string The query string that will be added to the base url and used to connect to the API with.
return LocalityCollection

RetrieveLocalitiesThreeTier() public method

Performs the Localities methods: three-tier locality dataset

Returns three-tier locality hierarchy of regions, districts and their respective suburbs. These values are used in Trade Me Property, Trade Me Jobs and Services.

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveLocalitiesThreeTier ( ) : LocalityCollection
return LocalityCollection

RetrieveLocalitiesTwoTier() public method

Performs the Localities method: two-tier locality dataset.

Returns list of towns used in member registration. This information is displayed on member profile as “suburb” and also on listings where the approximate location of goods is important, such as in Trade Me Motors.

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveLocalitiesTwoTier ( ) : LocalityCollection
return LocalityCollection

RetrieveMotorBikeCategories() public method

Performs the category methods: Retrieve a list of Trade Me Motors motorbike categories.

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveMotorBikeCategories ( ) : Category
return Category

RetrieveTravelLocalities() public method

Performs the category method: Returns a list of districts and suburbs as used by TradeMe travel. GET

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveTravelLocalities ( ) : LocalityCollection
return LocalityCollection

RetrieveUsedCarCategories() public method

Performs the category methods: Retrieve a list of Trade Me Motors used car categories.

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveUsedCarCategories ( ) : Category
return Category

SearchBluRayCatalog() public method

Performs the category method: Searches the Trade Me Blu-ray catalogue for movie titles. GET

DOES NOT REQUIRE AUTHENTICATION.
public SearchBluRayCatalog ( String search = "" ) : MovieTitles
search String The partial title to search for.
return MovieTitles

SearchDvdCatalog() public method

Performs the category method: Searches the Trade Me DVD catalogue for movie titles. GET

DOES NOT REQUIRE AUTHENTICATION.
public SearchDvdCatalog ( String search = "" ) : MovieTitles
search String The partial title to search for.
return MovieTitles