Comments (6)
Do you have an example item number?
from ebay-sdk-php.
Yes.Item number : 322134970015
from ebay-sdk-php.
I've tried getting the item using your example code and it's working for me.
foreach ($response->Item->ItemSpecifics->NameValueList as $nameValue) {
if ($nameValue->Name === 'EAN') {
printf("EAN found: %s\n", $nameValue->Value[0]);
}
}
The one thing to keep in mind is that a seller can provide more than one value for an item specific hence why I use $nameValue->Value[0]
in the above example.
from ebay-sdk-php.
Sorry , i had set the custom attributes for item. Can you please try now ? Item have the defualt specific EAN , but it is not getting the specific list .
from ebay-sdk-php.
In that case the EAN won't be found in the item specifics but in the ProductListingDetails field. For some reason the eBay documentation is not showing that the EAN field will be returned in GetItem, but it does work.
You need to ensure that you set DetailLevel
to either ItemReturnAttributes
or ReturnAll
otherwise eBay will not return the ProductListingDetails
field.
$request->DetailLevel = ['ItemReturnAttributes'];
.
.
.
printf("EAN found: %s\n", $response->Item->ProductListingDetails->EAN);
from ebay-sdk-php.
Yes .It's working . Thank you .
from ebay-sdk-php.
Related Issues (20)
- Return Policy Attribute Not Valid HOT 3
- SoldItemsOnly not working HOT 1
- Element names are incorrect in file HOT 2
- "invalid_client" on oAuth when requesting user access token HOT 7
- GetFeedbackRequest always returning the same date HOT 4
- The Feed API not Working HOT 3
- findItemAdvanced not return watchCount HOT 1
- Marketing resource url incorrect for BulkCreateAdsByListingId HOT 1
- Error 11 "Please specify a File with Valid Format" HOT 2
- Notifications HOT 2
- Finance API integration HOT 1
- Unable to search category by keywords HOT 1
- HTTPS everywhere? HOT 3
- Internal error to the application:10007 on GetOrders api HOT 1
- Credentials for findItemsIneBayStoresRequest HOT 3
- AddFixedPriceItemRequest and SuperSize photos HOT 1
- Is there a flag / option / etc to log the xml response from ebay? HOT 3
- Use this: Generate and Download API SDKs for eBay HOT 3
- DTS\eBaySDK\Trading\Types\AmountType value problem HOT 9
- "Warning: "continue" targeting switch is equivalent to "break". HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ebay-sdk-php.