C# Класс TradeMe.Api.Client.MembershipMethods

The MembershipMethods class contains the methods requried for making calls to the API related to memberships.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
MemberFeedbackById ( string id, MemberFeedbackCriteria criteria ) : Feedback

Performs the Membership Method: Retrieve feedback for a member.

Creates a query string using the parameters provided - the criteria parameter can be null if it is not required for the request.

DOES NOT REQUIRE AUTHENTICATION.

MemberFeedbackByQueryString ( string query ) : Feedback

Performs the Membership Method: Retrieve feedback for a member

using the "query" string provided - should be the "Search/Member/{member_id}/Feedback.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

DOES NOT REQUIRE AUTHENTICATION.

MemberFeedbackCountById ( string id ) : FeedbackCount

Performs the membership method: Retrieve member feedback summary (counts).

Creates a query string using the member id provided.

DOES NOT REQUIRE AUTHENTICATION.

MemberFeedbackCountByQueryString ( string query ) : FeedbackCount

Performs the membership method: Retrieve member feedback summary (counts) using the "query" string provided - should be the "Search/Member/{member_id}/FeedbackCount.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

DOES NOT REQUIRE AUTHENTICATION.

MemberId ( string query ) : MemberId

Performs the Membership Method: Retrieve member ID

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

DOES NOT REQUIRE AUTHENTICATION.

MemberIdByNickname ( string nickname ) : MemberId

Performs the Membership Method: Retrieve member ID.

Creates a query string using the nickname parameter provided

DOES NOT REQUIRE AUTHENTICATION.

MemberListings ( string query ) : Listings

Performs the Membership Method: Retrieve a member’s listings. GET

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

DOES NOT REQUIRE AUTHENTICATION.

MemberListingsById ( string id ) : Listings

Performs the Membership Method: Retrieve a member’s listings.

Creates a query string using the parameters provided.

DOES NOT REQUIRE AUTHENTICATION.

MemberProfileById ( string id ) : MemberProfile

Performs the membership method: Retrieve a member’s profile data. Creates a query string using the member id provided.

DOES NOT REQUIRE AUTHENTICATION.

MemberProfileByQueryString ( string query ) : MemberProfile

Performs the membership method: Retrieve a member’s profile data using the "query" string provided - should be the "Member/{member_id}/Profile.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

DOES NOT REQUIRE AUTHENTICATION.

MembershipMethods ( ConnectionMethods connect ) : System

Initializes a new instance of the MembershipMethods class.

Приватные методы

Метод Описание
FeedbackConnectionHelper ( string url ) : Feedback

A helper method for performing the http request for feedback requests.

DOES NOT REQUIRE AUTHENTICATION.

FeedbackCountConnectionHelper ( string url ) : FeedbackCount

A helper method for performing the http request for feedback count requests.

MemberIdConnectionHelper ( string url ) : MemberId

A helper method for performing the http request for MemberId requests.

DOES NOT REQUIRE AUTHENTICATION.

MemberProfileHelper ( string url ) : MemberProfile

A helper method for performing the http request for a member profile request.

Описание методов

MemberFeedbackById() публичный Метод

Performs the Membership Method: Retrieve feedback for a member.

Creates a query string using the parameters provided - the criteria parameter can be null if it is not required for the request.

DOES NOT REQUIRE AUTHENTICATION.
public MemberFeedbackById ( string id, MemberFeedbackCriteria criteria ) : Feedback
id string The members id.
criteria MemberFeedbackCriteria The criteria.
Результат Feedback

MemberFeedbackByQueryString() публичный Метод

Performs the Membership Method: Retrieve feedback for a member

using the "query" string provided - should be the "Search/Member/{member_id}/Feedback.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

DOES NOT REQUIRE AUTHENTICATION.
public MemberFeedbackByQueryString ( string query ) : Feedback
query string The query string that will be added to the base url and used to connect to the API with.
Результат Feedback

MemberFeedbackCountById() публичный Метод

Performs the membership method: Retrieve member feedback summary (counts).

Creates a query string using the member id provided.

DOES NOT REQUIRE AUTHENTICATION.
public MemberFeedbackCountById ( string id ) : FeedbackCount
id string The members id.
Результат FeedbackCount

MemberFeedbackCountByQueryString() публичный Метод

Performs the membership method: Retrieve member feedback summary (counts) using the "query" string provided - should be the "Search/Member/{member_id}/FeedbackCount.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

DOES NOT REQUIRE AUTHENTICATION.
public MemberFeedbackCountByQueryString ( string query ) : FeedbackCount
query string The query string that will be added to the base url and used to connect to the API with.
Результат FeedbackCount

MemberId() публичный Метод

Performs the Membership Method: Retrieve member ID

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

DOES NOT REQUIRE AUTHENTICATION.
public MemberId ( string query ) : MemberId
query string The query string that will be added to the base url and used to connect to the API with.
Результат MemberId

MemberIdByNickname() публичный Метод

Performs the Membership Method: Retrieve member ID.

Creates a query string using the nickname parameter provided

DOES NOT REQUIRE AUTHENTICATION.
public MemberIdByNickname ( string nickname ) : MemberId
nickname string The members nickname.
Результат MemberId

MemberListings() публичный Метод

Performs the Membership Method: Retrieve a member’s listings. GET

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

DOES NOT REQUIRE AUTHENTICATION.
public MemberListings ( string query ) : Listings
query string The query string that will be added to the base url and used to connect to the API with.
Результат Listings

MemberListingsById() публичный Метод

Performs the Membership Method: Retrieve a member’s listings.

Creates a query string using the parameters provided.

DOES NOT REQUIRE AUTHENTICATION.
public MemberListingsById ( string id ) : Listings
id string The members id.
Результат Listings

MemberProfileById() публичный Метод

Performs the membership method: Retrieve a member’s profile data. Creates a query string using the member id provided.

DOES NOT REQUIRE AUTHENTICATION.
public MemberProfileById ( string id ) : MemberProfile
id string The members id.
Результат MemberProfile

MemberProfileByQueryString() публичный Метод

Performs the membership method: Retrieve a member’s profile data using the "query" string provided - should be the "Member/{member_id}/Profile.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

DOES NOT REQUIRE AUTHENTICATION.
public MemberProfileByQueryString ( string query ) : MemberProfile
query string The query string that will be added to the base url and used to connect to the API with.
Результат MemberProfile

MembershipMethods() публичный Метод

Initializes a new instance of the MembershipMethods class.
public MembershipMethods ( ConnectionMethods connect ) : System
connect ConnectionMethods A ConnectionMethods class used to make calls to the API
Результат System