获取 ebay sdk 业务策略
getting ebay sdk business policies
我是 eBay SDK 和 eBay 交易的新手 API。如何使用 API 或 SDK 获取所有业务政策(付款、运输和 return 政策)?我查看了文档,但还没有成功。
在 the eBay Trading API 中找到业务策略。下面简要描述了您可以从调用的输出中得到什么。
Inspect the properties of the returned containers to get the preference data for the authenticated user. As applicable, store the data (perhaps in a table), or display it to the user so that they can verify their current preferences.
示例 C# 调用
public GetUserPreferencesCall GetEbayUserPreferences()
{
if (this.Context == null) // context needs to be defined first
{
throw new NullReferenceException("ApiContext is not defined!");
}
GetUserPreferencesCall userPreferences = new GetUserPreferencesCall(Context);
userPreferences.ShowSellerProfilePreferences = true;
try { userPreferences.Execute(); }
catch (Exception ex)
{
// handle exception
}
return userPreferences;
}
我是 eBay SDK 和 eBay 交易的新手 API。如何使用 API 或 SDK 获取所有业务政策(付款、运输和 return 政策)?我查看了文档,但还没有成功。
在 the eBay Trading API 中找到业务策略。下面简要描述了您可以从调用的输出中得到什么。
Inspect the properties of the returned containers to get the preference data for the authenticated user. As applicable, store the data (perhaps in a table), or display it to the user so that they can verify their current preferences.
示例 C# 调用
public GetUserPreferencesCall GetEbayUserPreferences()
{
if (this.Context == null) // context needs to be defined first
{
throw new NullReferenceException("ApiContext is not defined!");
}
GetUserPreferencesCall userPreferences = new GetUserPreferencesCall(Context);
userPreferences.ShowSellerProfilePreferences = true;
try { userPreferences.Execute(); }
catch (Exception ex)
{
// handle exception
}
return userPreferences;
}