{"action":"created","issue":{"url":"https://api.github.com/repos/iesl/openreview-py/issues/139","repository_url":"https://api.github.com/repos/iesl/openreview-py","labels_url":"https://api.github.com/repos/iesl/openreview-py/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/iesl/openreview-py/issues/139/comments","events_url":"https://api.github.com/repos/iesl/openreview-py/issues/139/events","html_url":"https://github.com/iesl/openreview-py/issues/139","id":343126871,"node_id":"MDU6SXNzdWUzNDMxMjY4NzE=","number":139,"title":"PDF: implement how to upload and get a pdf file","user":{"login":"melisabok","id":545506,"node_id":"MDQ6VXNlcjU0NTUwNg==","avatar_url":"https://avatars0.githubusercontent.com/u/545506?v=4","gravatar_id":"","url":"https://api.github.com/users/melisabok","html_url":"https://github.com/melisabok","followers_url":"https://api.github.com/users/melisabok/followers","following_url":"https://api.github.com/users/melisabok/following{/other_user}","gists_url":"https://api.github.com/users/melisabok/gists{/gist_id}","starred_url":"https://api.github.com/users/melisabok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melisabok/subscriptions","organizations_url":"https://api.github.com/users/melisabok/orgs","repos_url":"https://api.github.com/users/melisabok/repos","events_url":"https://api.github.com/users/melisabok/events{/privacy}","received_events_url":"https://api.github.com/users/melisabok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mohituniyal","id":13500158,"node_id":"MDQ6VXNlcjEzNTAwMTU4","avatar_url":"https://avatars0.githubusercontent.com/u/13500158?v=4","gravatar_id":"","url":"https://api.github.com/users/mohituniyal","html_url":"https://github.com/mohituniyal","followers_url":"https://api.github.com/users/mohituniyal/followers","following_url":"https://api.github.com/users/mohituniyal/following{/other_user}","gists_url":"https://api.github.com/users/mohituniyal/gists{/gist_id}","starred_url":"https://api.github.com/users/mohituniyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohituniyal/subscriptions","organizations_url":"https://api.github.com/users/mohituniyal/orgs","repos_url":"https://api.github.com/users/mohituniyal/repos","events_url":"https://api.github.com/users/mohituniyal/events{/privacy}","received_events_url":"https://api.github.com/users/mohituniyal/received_events","type":"User","site_admin":false},"assignees":[{"login":"mohituniyal","id":13500158,"node_id":"MDQ6VXNlcjEzNTAwMTU4","avatar_url":"https://avatars0.githubusercontent.com/u/13500158?v=4","gravatar_id":"","url":"https://api.github.com/users/mohituniyal","html_url":"https://github.com/mohituniyal","followers_url":"https://api.github.com/users/mohituniyal/followers","following_url":"https://api.github.com/users/mohituniyal/following{/other_user}","gists_url":"https://api.github.com/users/mohituniyal/gists{/gist_id}","starred_url":"https://api.github.com/users/mohituniyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohituniyal/subscriptions","organizations_url":"https://api.github.com/users/mohituniyal/orgs","repos_url":"https://api.github.com/users/mohituniyal/repos","events_url":"https://api.github.com/users/mohituniyal/events{/privacy}","received_events_url":"https://api.github.com/users/mohituniyal/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-07-20T14:22:51Z","updated_at":"2018-07-24T18:35:44Z","closed_at":null,"author_association":"COLLABORATOR","body":"the HTTP calls are:\r\n\r\n```\r\nPUT /pdf\r\n```\r\n\r\nand \r\n\r\n```\r\nGET /pdf?id=noteId\r\n```"},"comment":{"url":"https://api.github.com/repos/iesl/openreview-py/issues/comments/407508816","html_url":"https://github.com/iesl/openreview-py/issues/139#issuecomment-407508816","issue_url":"https://api.github.com/repos/iesl/openreview-py/issues/139","id":407508816,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzUwODgxNg==","user":{"login":"mohituniyal","id":13500158,"node_id":"MDQ6VXNlcjEzNTAwMTU4","avatar_url":"https://avatars0.githubusercontent.com/u/13500158?v=4","gravatar_id":"","url":"https://api.github.com/users/mohituniyal","html_url":"https://github.com/mohituniyal","followers_url":"https://api.github.com/users/mohituniyal/followers","following_url":"https://api.github.com/users/mohituniyal/following{/other_user}","gists_url":"https://api.github.com/users/mohituniyal/gists{/gist_id}","starred_url":"https://api.github.com/users/mohituniyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohituniyal/subscriptions","organizations_url":"https://api.github.com/users/mohituniyal/orgs","repos_url":"https://api.github.com/users/mohituniyal/repos","events_url":"https://api.github.com/users/mohituniyal/events{/privacy}","received_events_url":"https://api.github.com/users/mohituniyal/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T18:35:44Z","updated_at":"2018-07-24T18:35:44Z","author_association":"COLLABORATOR","body":"We can return the raw content of the pdf and the user can utilize that.\r\n>>>c = openreview.Client(baseurl=<URL>)\r\n>>> fd = open('./local_tmp.pdf','wb')\r\n>>> fd.write(c.get_pdf(id=<note-id>))\r\n>>> fd.close()\r\n\r\nI checked and found that this writes a pdf perfectly.\r\n"}}
{"actor":{"display_login":"mohituniyal"}}