{"action":"created","issue":{"url":"https://api.github.com/repos/RobertSpread/spreadcart/issues/12","labels_url":"https://api.github.com/repos/RobertSpread/spreadcart/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/RobertSpread/spreadcart/issues/12/comments","events_url":"https://api.github.com/repos/RobertSpread/spreadcart/issues/12/events","html_url":"https://github.com/RobertSpread/spreadcart/issues/12","id":118299902,"number":12,"title":"Would like a sample update basket item API request","user":{"login":"jtlapp","id":138133,"avatar_url":"https://avatars.githubusercontent.com/u/138133?v=3","gravatar_id":"","url":"https://api.github.com/users/jtlapp","html_url":"https://github.com/jtlapp","followers_url":"https://api.github.com/users/jtlapp/followers","following_url":"https://api.github.com/users/jtlapp/following{/other_user}","gists_url":"https://api.github.com/users/jtlapp/gists{/gist_id}","starred_url":"https://api.github.com/users/jtlapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtlapp/subscriptions","organizations_url":"https://api.github.com/users/jtlapp/orgs","repos_url":"https://api.github.com/users/jtlapp/repos","events_url":"https://api.github.com/users/jtlapp/events{/privacy}","received_events_url":"https://api.github.com/users/jtlapp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-23T00:02:53Z","updated_at":"2015-11-24T11:55:33Z","closed_at":null,"body":"Hey Robert. After reviewing the dev docs on the API, my confidence that I understand how to issue a request to update a basket item is hovering around 5%. My confidence is at 95% that I'll be spending hours performing random experiments trying to guess unexplained bits.\r\n\r\nCan you ask the developers for an example of a request to update a basket item? I believe the following is the service that we would use:\r\n\r\nhttps://developer.spreadshirt.net/display/API/Basket+Resources#BasketResources-UpdateBasketItem\r\n\r\nIs there a way to issue a JSON payload? Despite being one of the people who helped create numerous XML standards, I despise XML. It is way too complex. A technology should not try to be anything to anyone, as XML does. (We argued for a simplified RPC specification but got no traction.)\r\n\r\nI'm looking for headers and payload. It would be even more helpful if they could map data from the basket in local storage to the elements in the payload. For example, there are three product IDs for each basket item: id, productId, and apiProductId.\r\n\r\nThanks for your help!"},"comment":{"url":"https://api.github.com/repos/RobertSpread/spreadcart/issues/comments/159244955","html_url":"https://github.com/RobertSpread/spreadcart/issues/12#issuecomment-159244955","issue_url":"https://api.github.com/repos/RobertSpread/spreadcart/issues/12","id":159244955,"user":{"login":"RobertSpread","id":15525977,"avatar_url":"https://avatars.githubusercontent.com/u/15525977?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertSpread","html_url":"https://github.com/RobertSpread","followers_url":"https://api.github.com/users/RobertSpread/followers","following_url":"https://api.github.com/users/RobertSpread/following{/other_user}","gists_url":"https://api.github.com/users/RobertSpread/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertSpread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertSpread/subscriptions","organizations_url":"https://api.github.com/users/RobertSpread/orgs","repos_url":"https://api.github.com/users/RobertSpread/repos","events_url":"https://api.github.com/users/RobertSpread/events{/privacy}","received_events_url":"https://api.github.com/users/RobertSpread/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T11:55:33Z","updated_at":"2015-11-24T11:55:33Z","body":"So, apparently there is no documentation o the JSON. (or they do not want to give it to me ;))\r\nThe statement was, that a simple XML to JSON translation should be sufficient as both follow the same requirements.\r\nI once wrote a plugin to add products to the basket. I have this on my home laptop and will provide a code snipped tonight."}}