{"action":"created","issue":{"url":"https://api.github.com/repos/printdotio/printio-api/issues/31","labels_url":"https://api.github.com/repos/printdotio/printio-api/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/printdotio/printio-api/issues/31/comments","events_url":"https://api.github.com/repos/printdotio/printio-api/issues/31/events","html_url":"https://github.com/printdotio/printio-api/issues/31","id":84612169,"number":31,"title":"GET Producttemplates AND Product Preview API Call explanation required","user":{"login":"djeet","id":4089295,"avatar_url":"https://avatars.githubusercontent.com/u/4089295?v=3","gravatar_id":"","url":"https://api.github.com/users/djeet","html_url":"https://github.com/djeet","followers_url":"https://api.github.com/users/djeet/followers","following_url":"https://api.github.com/users/djeet/following{/other_user}","gists_url":"https://api.github.com/users/djeet/gists{/gist_id}","starred_url":"https://api.github.com/users/djeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djeet/subscriptions","organizations_url":"https://api.github.com/users/djeet/orgs","repos_url":"https://api.github.com/users/djeet/repos","events_url":"https://api.github.com/users/djeet/events{/privacy}","received_events_url":"https://api.github.com/users/djeet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-06-03T15:07:09Z","updated_at":"2015-07-13T13:12:43Z","closed_at":null,"body":"1) \r\nPlease explain the parameters and usage of call get_producttemplates ()\r\n\r\nstdClass Object\r\n(\r\n    [Options] => Array\r\n        (\r\n            [0] => stdClass Object\r\n                (\r\n                    [Spaces] => Array\r\n                        (\r\n                            [0] => stdClass Object\r\n                                (\r\n                                    [Id] => 82A8D\r\n                                    [Index] => 1\r\n                                    [Layers] => Array\r\n                                        (\r\n                                            [0] => stdClass Object\r\n                                                (\r\n                                                    [Id] => 81E92\r\n                                                    [Type] => Design\r\n                                                    [ZIndex] => 0\r\n                                                    [X1] => 0\r\n                                                    [X2] => 7500\r\n                                                    [Y1] => 0\r\n                                                    [Y2] => 9000\r\n                                                    [BackgroundImageUrl] => https://az412349.vo.msecnd.net/product-wovenblankets/wovenblanket_50x60backv2.png\r\n                                                )\r\n\r\n                                            [1] => stdClass Object\r\n                                                (\r\n                                                    [Id] => 1213F\r\n                                                    [Type] => Image\r\n                                                    [ZIndex] => 1\r\n                                                    [X1] => 0\r\n                                                    [X2] => 7500\r\n                                                    [Y1] => 0\r\n                                                    [Y2] => 9000\r\n                                                )\r\n\r\n                                            [2] => stdClass Object\r\n                                                (\r\n                                                    [Id] => 7AF5B\r\n                                                    [Type] => Design\r\n                                                    [ZIndex] => 2\r\n                                                    [X1] => 0\r\n                                                    [X2] => 7500\r\n                                                    [Y1] => 0\r\n                                                    [Y2] => 9000\r\n                                                    [OverlayImageUrl] => https://az412349.vo.msecnd.net/product-wovenblankets/wovenblanket_50x60overlayv2.png\r\n                                                )\r\n\r\n                                        )\r\n\r\nSee this URL\r\nhttp://bakingcode.org/print_io/?function=5&submit=Submit\r\n\r\n\r\n\r\n2) Also required explanation for :\r\n\r\nhttp://bakingcode.org/print_io/?function=15&submit=Submit\r\n\r\nRequest \r\nArray\r\n(\r\n    [Sku] => WovenBlanket1_50x60\r\n    [Template] => \r\n    [Images] => Array\r\n        (\r\n            [LayerId] => 8BC30\r\n            [Image] => Array\r\n                (\r\n                    [Url] => https://az412349.vo.msecnd.net/product-wovenblankets/wovenblanket_50x60back.png\r\n                    [MaxFit] => false\r\n                    [X1] => 0\r\n                    [X2] => 10000\r\n                    [Y1] => 0\r\n                    [Y2] => 12000\r\n                )\r\n\r\n        )\r\n\r\n    [MaxHeight] => 4\r\n    [MaxWidth] => 3\r\n)\r\nResponse \r\nstdClass Object\r\n(\r\n    [ErrorReferenceCode] => ec838b70-424c-4f0d-9373-8296f8f58d25\r\n    [Errors] => Array\r\n        (\r\n            [0] => stdClass Object\r\n                (\r\n                    [AttemptedValue] => \r\n                    [CustomState] => \r\n                    [ErrorMessage] => Must not be empty.\r\n                    [PropertyName] => Items\r\n                )\r\n\r\n        )\r\n\r\n    [HadError] => 1\r\n)\r\n\r\n\r\n\r\n3) Is there an API  method to generate the preview    if we pass on the images?"},"comment":{"url":"https://api.github.com/repos/printdotio/printio-api/issues/comments/120923353","html_url":"https://github.com/printdotio/printio-api/issues/31#issuecomment-120923353","issue_url":"https://api.github.com/repos/printdotio/printio-api/issues/31","id":120923353,"user":{"login":"micahasmith","id":959902,"avatar_url":"https://avatars.githubusercontent.com/u/959902?v=3","gravatar_id":"","url":"https://api.github.com/users/micahasmith","html_url":"https://github.com/micahasmith","followers_url":"https://api.github.com/users/micahasmith/followers","following_url":"https://api.github.com/users/micahasmith/following{/other_user}","gists_url":"https://api.github.com/users/micahasmith/gists{/gist_id}","starred_url":"https://api.github.com/users/micahasmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micahasmith/subscriptions","organizations_url":"https://api.github.com/users/micahasmith/orgs","repos_url":"https://api.github.com/users/micahasmith/repos","events_url":"https://api.github.com/users/micahasmith/events{/privacy}","received_events_url":"https://api.github.com/users/micahasmith/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T13:12:43Z","updated_at":"2015-07-13T13:12:43Z","body":"If this is for user previews and you have the ability to make the image smaller-- do so-- it'll decrease generation time."}}