我是eBay SDK和eBay交易API的新手。如何使用API或SDK获取所有业务策略(付款,运送和退货政策)?我查看了文档但没有运气。
在the eBay Trading API找到了商业政策。从调用的输出中可以看出,下面简要介绍。
检查返回容器的属性以获取经过身份验证的用户的首选项数据。适用时,存储数据(可能在表中),或将其显示给用户,以便他们可以验证其当前首选项。
一个示例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;
}