{"action":"created","issue":{"url":"https://api.github.com/repos/moltin/php-sdk/issues/14","labels_url":"https://api.github.com/repos/moltin/php-sdk/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/moltin/php-sdk/issues/14/comments","events_url":"https://api.github.com/repos/moltin/php-sdk/issues/14/events","html_url":"https://github.com/moltin/php-sdk/issues/14","id":70470182,"number":14,"title":"Unable to add items to cart","user":{"login":"lindseydiloreto","id":5309692,"avatar_url":"https://avatars.githubusercontent.com/u/5309692?v=3","gravatar_id":"","url":"https://api.github.com/users/lindseydiloreto","html_url":"https://github.com/lindseydiloreto","followers_url":"https://api.github.com/users/lindseydiloreto/followers","following_url":"https://api.github.com/users/lindseydiloreto/following{/other_user}","gists_url":"https://api.github.com/users/lindseydiloreto/gists{/gist_id}","starred_url":"https://api.github.com/users/lindseydiloreto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lindseydiloreto/subscriptions","organizations_url":"https://api.github.com/users/lindseydiloreto/orgs","repos_url":"https://api.github.com/users/lindseydiloreto/repos","events_url":"https://api.github.com/users/lindseydiloreto/events{/privacy}","received_events_url":"https://api.github.com/users/lindseydiloreto/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-04-23T17:42:54Z","updated_at":"2015-04-24T19:19:49Z","closed_at":"2015-04-24T19:18:13Z","body":"I'm using the PHP SDK, and my code is not working. I feel like something similar was working recently, so I'm wondering if something has changed...\r\n\r\n    $matches = \\Product::Find(['slug' => 'my-product']);\r\n    $product = $matches['result'][0];\r\n\r\n    $item = \\Cart::Insert($product['id'], 1);\r\n\r\n    $cart = \\Cart::Contents();\r\n\r\n - **$product** is properly returning the full product details.\r\n - **$item** is NULL.\r\n - **$cart** is showing an empty cart.\r\n\r\nThis is the version I'm using...\r\n\r\n    \"require\": {\r\n        \"moltin/php-sdk\": \"dev-version1\"\r\n    }\r\n\r\nAny thoughts?"},"comment":{"url":"https://api.github.com/repos/moltin/php-sdk/issues/comments/96040543","html_url":"https://github.com/moltin/php-sdk/issues/14#issuecomment-96040543","issue_url":"https://api.github.com/repos/moltin/php-sdk/issues/14","id":96040543,"user":{"login":"outrunthewolf","id":814246,"avatar_url":"https://avatars.githubusercontent.com/u/814246?v=3","gravatar_id":"","url":"https://api.github.com/users/outrunthewolf","html_url":"https://github.com/outrunthewolf","followers_url":"https://api.github.com/users/outrunthewolf/followers","following_url":"https://api.github.com/users/outrunthewolf/following{/other_user}","gists_url":"https://api.github.com/users/outrunthewolf/gists{/gist_id}","starred_url":"https://api.github.com/users/outrunthewolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outrunthewolf/subscriptions","organizations_url":"https://api.github.com/users/outrunthewolf/orgs","repos_url":"https://api.github.com/users/outrunthewolf/repos","events_url":"https://api.github.com/users/outrunthewolf/events{/privacy}","received_events_url":"https://api.github.com/users/outrunthewolf/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T19:19:49Z","updated_at":"2015-04-24T19:19:49Z","body":"No worries, anytime!"}}