question

mohabu-81 avatar image
0 Likes"
mohabu-81 asked

Query XML GetItem for specific info field

Hi wondering how can we just get a specific info field of a GetItem request?
We make the request using the following with `ReturnAll`:

        <?xml version="1.0" encoding="utf-8"?>
        <GetItem xmlns="urn:ebay:apis:eBLBaseComponents">
        <RequesterCredentials>
            <eBayAuthToken>{self.key}</eBayAuthToken>
        </RequesterCredentials>
        <ItemID>{itemid}</ItemID>
        <IncludeItemSpecifics>True</IncludeItemSpecifics>
        <DetailLevel>ReturnAll</DetailLevel>
        </GetItem>


Which gives us the following XML tree:

            "ItemSpecifics": {
                "NameValueList": [
                    {
                        "Name": "Brand",
                        "Source": "ItemSpecific",
                        "Value": "Foo Bar Value"
                    },
                    {
                        "Name": "Part Type",
                        "Source": "ItemSpecific",
                        "Value": "Foo Bar Value"
                    },
                    {
                        "Name": "Manufacturer Part Number",
                        "Source": "ItemSpecific",
                        "Value": "Foo-123 Foo-456 Bar-123"
                    },
                 ]
             }

Currently, we can parse the XML to get anything that we need. But how can we modify our XML, so we only get "Value": "Foo-123 Foo-456 Bar-123" from ebay and nothing else?

getitem
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.