add item by legacy id

This commit is contained in:
JBP
2019-08-15 14:30:19 +02:00
parent 9f314ca925
commit a050a065b3
4 changed files with 185 additions and 8 deletions
+11
View File
@@ -44,3 +44,14 @@ func TestAuthorization(t *testing.T) {
t.Log(into)
}
}
// https://developer.ebay.com/my/api_test_tool?index=0&api=browse&call=item_summary_search__GET&variation=json
func TestGetItemByLegacyID(t *testing.T) {
it, err := client.Buy.Browse.GetItemByLegacyID(context.Background(), "110436963416")
if err != nil {
t.Fatal(err)
}
if testing.Verbose() {
t.Logf("%+v", it)
}
}