{"action":"created","issue":{"url":"https://api.github.com/repos/io7/GoogleCloudPrint/issues/9","repository_url":"https://api.github.com/repos/io7/GoogleCloudPrint","labels_url":"https://api.github.com/repos/io7/GoogleCloudPrint/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/io7/GoogleCloudPrint/issues/9/comments","events_url":"https://api.github.com/repos/io7/GoogleCloudPrint/issues/9/events","html_url":"https://github.com/io7/GoogleCloudPrint/issues/9","id":348909406,"node_id":"MDU6SXNzdWUzNDg5MDk0MDY=","number":9,"title":"Using ticket instead of capabilities when sending a /submit request (specifying printer tray)","user":{"login":"awerber","id":32313137,"node_id":"MDQ6VXNlcjMyMzEzMTM3","avatar_url":"https://avatars0.githubusercontent.com/u/32313137?v=4","gravatar_id":"","url":"https://api.github.com/users/awerber","html_url":"https://github.com/awerber","followers_url":"https://api.github.com/users/awerber/followers","following_url":"https://api.github.com/users/awerber/following{/other_user}","gists_url":"https://api.github.com/users/awerber/gists{/gist_id}","starred_url":"https://api.github.com/users/awerber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awerber/subscriptions","organizations_url":"https://api.github.com/users/awerber/orgs","repos_url":"https://api.github.com/users/awerber/repos","events_url":"https://api.github.com/users/awerber/events{/privacy}","received_events_url":"https://api.github.com/users/awerber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-08T22:06:51Z","updated_at":"2018-11-01T14:11:25Z","closed_at":null,"author_association":"NONE","body":"I'm trying to specify the printer tray to use when using Google Cloud Print. My assumption is that I have to submit a ticket when creating the /send request.\r\n\r\nIt says at https://developers.google.com/cloud-print/docs/appInterfaces#submit that you're supposed to use ticket instead of capabilities. But, the code in this project uses capabilities, and it works.\r\n\r\nI've tried to make an overload of public CloudPrintJob PrintDocument that takes a ticket as a parameter. I replaced the line that adds capabilities with this:\r\n\r\np.Parameters.Add( new PostDataParam { Name = \"ticket\", Value = ticketContent, Type = PostDataParamType.Field } );\r\n\r\nI've tried various values for ticketContent, and printing never occurs. One value I've tried is:\r\n\r\nticketContent = \"{\\\"version\\\": \\\"1.0\\\",\\\"print\\\": {}}\";\r\n\r\nI used this because it looks like the ticket submitted when you use the Job Submit API at https://www.google.com/cloudprint/simulate.html. I am able to get printing to work when I've used this web page. I've also tried the ticket returned after using the Job ID from the Submit API in the Job Fetch API on the simulate page. No luck. I don't see any errors, but no print job is created.\r\n\r\nSo, first, is it possible to include a ticket? And, if a ticket can be submitted, how would it be done?"},"comment":{"url":"https://api.github.com/repos/io7/GoogleCloudPrint/issues/comments/435052448","html_url":"https://github.com/io7/GoogleCloudPrint/issues/9#issuecomment-435052448","issue_url":"https://api.github.com/repos/io7/GoogleCloudPrint/issues/9","id":435052448,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTA1MjQ0OA==","user":{"login":"christianz","id":1029602,"node_id":"MDQ6VXNlcjEwMjk2MDI=","avatar_url":"https://avatars0.githubusercontent.com/u/1029602?v=4","gravatar_id":"","url":"https://api.github.com/users/christianz","html_url":"https://github.com/christianz","followers_url":"https://api.github.com/users/christianz/followers","following_url":"https://api.github.com/users/christianz/following{/other_user}","gists_url":"https://api.github.com/users/christianz/gists{/gist_id}","starred_url":"https://api.github.com/users/christianz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianz/subscriptions","organizations_url":"https://api.github.com/users/christianz/orgs","repos_url":"https://api.github.com/users/christianz/repos","events_url":"https://api.github.com/users/christianz/events{/privacy}","received_events_url":"https://api.github.com/users/christianz/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T14:11:25Z","updated_at":"2018-11-01T14:11:25Z","author_association":"MEMBER","body":"Hi, and sorry for the late reply. I've been extremely busy with work.\r\n\r\nThis is uncharted territory for me, sadly. I hope you take the time to make a pull request if you do find the solution!"}}
{"actor":{"display_login":"christianz"}}