Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sample Amazon Product API Response
SimpleXMLElement Object
(
[OperationRequest] => SimpleXMLElement Object
(
[HTTPHeaders] => SimpleXMLElement Object
(
[Header] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Name] => UserAgent
[Value] => GuzzleHttp/6.2.0 curl/7.43.0 PHP/5.6.11-1ubuntu3.1
)
)
)
[RequestId] => XXXXXX-9aa6-4bca-XXXX-XXXXXXXXX
[Arguments] => SimpleXMLElement Object
(
[Argument] => Array
(
[0] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Name] => AWSAccessKeyId
[Value] => MY-ACCESS-KEY
)
)
[1] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Name] => AssociateTag
[Value] => MY-AFFILIATE-ID
)
)
[2] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Name] => IdType
[Value] => ASIN
)
)
[3] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Name] => ItemId
[Value] => B00BGO0Q9O
)
)
[4] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Name] => Operation
[Value] => ItemLookup
)
)
[5] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Name] => ResponseGroup
[Value] => Small
)
)
[6] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Name] => Service
[Value] => AWSECommerceService
)
)
[7] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Name] => Timestamp
[Value] => 2016-04-16T19:33:07+08:00
)
)
[8] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Name] => Version
[Value] => 2013-08-01
)
)
[9] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Name] => Signature
[Value] => XXXXXXXXXXXXXXXXXXXXXXXX
)
)
)
)
[RequestProcessingTime] => 0.0144000000000000
)
[Items] => SimpleXMLElement Object
(
[Request] => SimpleXMLElement Object
(
[IsValid] => True
[ItemLookupRequest] => SimpleXMLElement Object
(
[IdType] => ASIN
[ItemId] => B00BGO0Q9O
[ResponseGroup] => Small
[VariationPage] => All
)
)
[Item] => SimpleXMLElement Object
(
[ASIN] => B00BGO0Q9O
[ParentASIN] => B00BR00AWU
[DetailPageURL] => http://www.amazon.com/Fitbit-Wireless-Activity-Sleep-Wristband/dp/B00BGO0Q9O%3Fpsc%3D1%26SubscriptionId%3DAKIAIF35P33BQF5NFGSA%26tag%3DMY-AFFILIATE-ID%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB00BGO0Q9O
[ItemLinks] => SimpleXMLElement Object
(
[ItemLink] => Array
(
[0] => SimpleXMLElement Object
(
[Description] => Technical Details
[URL] => http://www.amazon.com/Fitbit-Wireless-Activity-Sleep-Wristband/dp/tech-data/B00BGO0Q9O%3FSubscriptionId%3DAKIAIF35P33BQF5NFGSA%26tag%3DMY-AFFILIATE-ID%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB00BGO0Q9O
)
[1] => SimpleXMLElement Object
(
[Description] => Add To Baby Registry
[URL] => http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB00BGO0Q9O%26SubscriptionId%3DAKIAIF35P33BQF5NFGSA%26tag%3DMY-AFFILIATE-ID%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB00BGO0Q9O
)
[2] => SimpleXMLElement Object
(
[Description] => Add To Wedding Registry
[URL] => http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB00BGO0Q9O%26SubscriptionId%3DAKIAIF35P33BQF5NFGSA%26tag%3DMY-AFFILIATE-ID%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB00BGO0Q9O
)
[3] => SimpleXMLElement Object
(
[Description] => Add To Wishlist
[URL] => http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB00BGO0Q9O%26SubscriptionId%3DAKIAIF35P33BQF5NFGSA%26tag%3DMY-AFFILIATE-ID%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB00BGO0Q9O
)
[4] => SimpleXMLElement Object
(
[Description] => Tell A Friend
[URL] => http://www.amazon.com/gp/pdp/taf/B00BGO0Q9O%3FSubscriptionId%3DAKIAIF35P33BQF5NFGSA%26tag%3DMY-AFFILIATE-ID%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB00BGO0Q9O
)
[5] => SimpleXMLElement Object
(
[Description] => All Customer Reviews
[URL] => http://www.amazon.com/review/product/B00BGO0Q9O%3FSubscriptionId%3DAKIAIF35P33BQF5NFGSA%26tag%3DMY-AFFILIATE-ID%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB00BGO0Q9O
)
[6] => SimpleXMLElement Object
(
[Description] => All Offers
[URL] => http://www.amazon.com/gp/offer-listing/B00BGO0Q9O%3FSubscriptionId%3DAKIAIF35P33BQF5NFGSA%26tag%3DMY-AFFILIATE-ID%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB00BGO0Q9O
)
)
)
[ItemAttributes] => SimpleXMLElement Object
(
[Manufacturer] => Fitbit
[ProductGroup] => Health and Beauty
[Title] => Fitbit Flex Wireless Activity + Sleep Wristband, Black
)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment