{"action":"created","issue":{"url":"https://api.github.com/repos/matheussampaio/urionlinejudge-cli/issues/4","labels_url":"https://api.github.com/repos/matheussampaio/urionlinejudge-cli/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/matheussampaio/urionlinejudge-cli/issues/4/comments","events_url":"https://api.github.com/repos/matheussampaio/urionlinejudge-cli/issues/4/events","html_url":"https://github.com/matheussampaio/urionlinejudge-cli/issues/4","id":114876433,"number":4,"title":"Fetch a question from the site","user":{"login":"matheussampaio","id":1020467,"avatar_url":"https://avatars.githubusercontent.com/u/1020467?v=3","gravatar_id":"","url":"https://api.github.com/users/matheussampaio","html_url":"https://github.com/matheussampaio","followers_url":"https://api.github.com/users/matheussampaio/followers","following_url":"https://api.github.com/users/matheussampaio/following{/other_user}","gists_url":"https://api.github.com/users/matheussampaio/gists{/gist_id}","starred_url":"https://api.github.com/users/matheussampaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matheussampaio/subscriptions","organizations_url":"https://api.github.com/users/matheussampaio/orgs","repos_url":"https://api.github.com/users/matheussampaio/repos","events_url":"https://api.github.com/users/matheussampaio/events{/privacy}","received_events_url":"https://api.github.com/users/matheussampaio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matheussampaio/urionlinejudge-cli/labels/new-feature","name":"new-feature","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-03T18:11:27Z","updated_at":"2015-11-23T08:45:28Z","closed_at":null,"body":"Would be nice to have a command to fetch some problem from the site and create a file with the description injected on sample file.\r\n\r\n\r\n\r\n# Example:\r\n\r\n`sample.cpp`\r\n```cpp\r\n// inject:problem\r\n\r\nint main()\r\n{\r\n    // work here\r\n\r\n    return 0;\r\n}\r\n```\r\n```bash\r\n$ urionlinejudge fetch --id 1149 --path path/to/save --sample sample.cpp\r\n```\r\n\r\n`path/to/save/1149.cpp`:\r\n```cpp\r\n/*\r\n * URL: https://www.urionlinejudge.com.br/judge/en/problems/view/1149\r\n * \r\n * Title: Summing Consecutive Integers\r\n * \r\n * Description: Write an algorithm to read a value A and a value N. Print the sum of \r\n * N numbers from A (inclusive). While N is negative or ZERO, a new N (only N) \r\n * must be read. All input values are in the same line.\r\n *\r\n * Input: The input contains only integer values, ​​can be positive or negative.\r\n *\r\n * Output: The output contains only an integer value.\r\n * \r\n * Sample Input: \r\n * 3 2\r\n *\r\n * Sample Output:\r\n * 7\r\n *\r\n */\r\nint main()\r\n{\r\n    // work here.\r\n\r\n    return 0;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/matheussampaio/urionlinejudge-cli/issues/comments/158877995","html_url":"https://github.com/matheussampaio/urionlinejudge-cli/issues/4#issuecomment-158877995","issue_url":"https://api.github.com/repos/matheussampaio/urionlinejudge-cli/issues/4","id":158877995,"user":{"login":"matheussampaio","id":1020467,"avatar_url":"https://avatars.githubusercontent.com/u/1020467?v=3","gravatar_id":"","url":"https://api.github.com/users/matheussampaio","html_url":"https://github.com/matheussampaio","followers_url":"https://api.github.com/users/matheussampaio/followers","following_url":"https://api.github.com/users/matheussampaio/following{/other_user}","gists_url":"https://api.github.com/users/matheussampaio/gists{/gist_id}","starred_url":"https://api.github.com/users/matheussampaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matheussampaio/subscriptions","organizations_url":"https://api.github.com/users/matheussampaio/orgs","repos_url":"https://api.github.com/users/matheussampaio/repos","events_url":"https://api.github.com/users/matheussampaio/events{/privacy}","received_events_url":"https://api.github.com/users/matheussampaio/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T08:45:28Z","updated_at":"2015-11-23T08:45:28Z","body":"@newlucasfevi Wanna do this?"}}