获得ebay sdk商业政策

问题描述 投票:0回答:1

我是eBay SDK和eBay交易API的新手。如何使用API​​或SDK获取所有业务策略(付款,运送和退货政策)?我查看了文档但没有运气。

c# ebay ebay-api
1个回答
0
投票

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; 
}
© www.soinside.com 2019 - 2024. All rights reserved.