Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

商品API #2

Open
muei opened this issue Sep 16, 2014 · 0 comments
Open

商品API #2

muei opened this issue Sep 16, 2014 · 0 comments

Comments

@muei
Copy link

muei commented Sep 16, 2014

taobao.items.custom.getapi获取时会如下报错:
json: cannot unmarshal object into Go value of type []*product.Item.
调用代码:
`
var req product.ItemsCustomGetRequest
req.SetOuterId(sku)
req.SetFields("num_iid")

_, data, err := req.GetResponse("xxxxxxxxxxxxxxxxxxxxxx")
if err != nil {
    log.Println("err:", err.Error())
    return
}

`
10.31更新.
上述乃json不一致问题导致,借鉴前辈的经验.我另外开发了一个sdk,欢迎指点
ohohco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant