{"action":"created","issue":{"url":"https://api.github.com/repos/CPIGroup/phpAmazonMWS/issues/53","repository_url":"https://api.github.com/repos/CPIGroup/phpAmazonMWS","labels_url":"https://api.github.com/repos/CPIGroup/phpAmazonMWS/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/CPIGroup/phpAmazonMWS/issues/53/comments","events_url":"https://api.github.com/repos/CPIGroup/phpAmazonMWS/issues/53/events","html_url":"https://github.com/CPIGroup/phpAmazonMWS/issues/53","id":78959165,"number":53,"title":"Unable to see to what Id - IdType combination a AmazonProduct belongs to","user":{"login":"HMAZonderland","id":4153366,"avatar_url":"https://avatars.githubusercontent.com/u/4153366?v=3","gravatar_id":"","url":"https://api.github.com/users/HMAZonderland","html_url":"https://github.com/HMAZonderland","followers_url":"https://api.github.com/users/HMAZonderland/followers","following_url":"https://api.github.com/users/HMAZonderland/following{/other_user}","gists_url":"https://api.github.com/users/HMAZonderland/gists{/gist_id}","starred_url":"https://api.github.com/users/HMAZonderland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HMAZonderland/subscriptions","organizations_url":"https://api.github.com/users/HMAZonderland/orgs","repos_url":"https://api.github.com/users/HMAZonderland/repos","events_url":"https://api.github.com/users/HMAZonderland/events{/privacy}","received_events_url":"https://api.github.com/users/HMAZonderland/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CPIGroup/phpAmazonMWS/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-21T11:46:06Z","updated_at":"2016-06-01T18:08:24Z","closed_at":null,"body":"For my application I want to add products at Amazon. After the whole process I want to fetch the ASIN's that map to my SellerSku's. For that I want to use the AmazonProductList class (getProductById). After executing the query I get my results (for 5 products including variations) from Amazon, but I'm unable to relate to what product they belong because the Id and IdType values are not stored in the AmazonProduct. It's simply impossible to tell to what SellerSku, EAN or ISBN the results belong. \r\n\r\nThere for I want to suggest these changes in the `AmazonProductCore` class for function `parseXML($xml)`, at line 93:\r\n\r\n```php\r\n$this->productList[$this->index]->data['Identifiers'] = array_merge($this->productList[$this->index]->data['Identifiers'], ['Request' => $temp['@attributes']]);\r\n```\r\n\r\nThis will inject the Id and IdType of the Product that was searched for. Sample:\r\n\r\n```php\r\nAmazonProduct Object\r\n(\r\n    [data:protected] => Array\r\n    (\r\n        [Identifiers] => Array\r\n        (\r\n            [MarketplaceASIN] => Array\r\n            (\r\n                [MarketplaceId] => A1PA6795UKMFR9\r\n                [ASIN] => B00V38Q1DI\r\n            )\r\n            [Request] => Array\r\n            (\r\n                [Id] => 8718888013105\r\n                [IdType] => EAN\r\n                [status] => Success\r\n            )\r\n        )\r\n    )\r\n)\r\n```"},"comment":{"url":"https://api.github.com/repos/CPIGroup/phpAmazonMWS/issues/comments/223077289","html_url":"https://github.com/CPIGroup/phpAmazonMWS/issues/53#issuecomment-223077289","issue_url":"https://api.github.com/repos/CPIGroup/phpAmazonMWS/issues/53","id":223077289,"user":{"login":"Peardian","id":2624085,"avatar_url":"https://avatars.githubusercontent.com/u/2624085?v=3","gravatar_id":"","url":"https://api.github.com/users/Peardian","html_url":"https://github.com/Peardian","followers_url":"https://api.github.com/users/Peardian/followers","following_url":"https://api.github.com/users/Peardian/following{/other_user}","gists_url":"https://api.github.com/users/Peardian/gists{/gist_id}","starred_url":"https://api.github.com/users/Peardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Peardian/subscriptions","organizations_url":"https://api.github.com/users/Peardian/orgs","repos_url":"https://api.github.com/users/Peardian/repos","events_url":"https://api.github.com/users/Peardian/events{/privacy}","received_events_url":"https://api.github.com/users/Peardian/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T18:08:24Z","updated_at":"2016-06-01T18:08:24Z","body":"I implemented your suggestion. Thanks!"}}
{"actor":{"display_login":"Peardian"}}