EBay API - GetOrders - 如何获取国家代码?

时间:2014-05-01 21:25:57

标签: api ebay country getorders

如何从GetOrders API调用的结果中获取CountryCode(US,CA等)?

试过这个,但它给了我:224,116

Dim ShipInfo As AddressType = Order.ShippingAddress
Dim CountryCode As String = ShipInfo.Country

试过这个,但它给了我:United Stats,Canada等。

Dim ShipInfo As AddressType = Order.ShippingAddress
Dim CountryCode As String = ShipInfo.CountryName

请帮忙!

1 个答案:

答案 0 :(得分:0)

您应该使用:

Dim ShipInfo As AddressType = Order.ShippingAddress
Dim CountryCode As String = ShipInfo.Country.ToString()