{"action":"created","comment":{"url":"https://api.github.com/repos/demisto/demisto-py/pulls/comments/234460476","pull_request_review_id":176103274,"id":234460476,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDQ2MDQ3Ng==","diff_hunk":"@@ -8,43 +8,55 @@\n # Version:      1.0\n #\n \n-import json\n import argparse\n import csv\n import demisto\n \n+\n def p(what):\n     if verbose:\n         print(what)\n \n+\n def options_handler():\n     parser = argparse.ArgumentParser(description='Integrations and commands')\n-    parser.add_argument('-k', '--key', help='The API key to access the server', required=True)\n-    parser.add_argument('-s', '--server', help='The server URL to connect to', required=True)\n-    parser.add_argument('-q', '--quiet', action='store_false', dest='verbose', default=True, help=\"no extra prints\")\n-    parser.add_argument('-o', '--output', help='The output CSV file', default='integrations.csv')\n+    parser.add_argument(\n+        '-k', '--key', help='The API key to access the server', required=True)\n+    parser.add_argument(\n+        '-s', '--server', help='The server URL to connect to', required=True)\n+    parser.add_argument(\n+        '-q', '--quiet', action='store_false',\n+        dest='verbose', default=True, help=\"no extra prints\")","path":"integrations_example.py","position":27,"original_position":27,"commit_id":"a0e81c5f4aa74b65934a30db96241d204ca39f29","original_commit_id":"a0e81c5f4aa74b65934a30db96241d204ca39f29","user":{"login":"42B","id":37713517,"node_id":"MDQ6VXNlcjM3NzEzNTE3","avatar_url":"https://avatars0.githubusercontent.com/u/37713517?v=4","gravatar_id":"","url":"https://api.github.com/users/42B","html_url":"https://github.com/42B","followers_url":"https://api.github.com/users/42B/followers","following_url":"https://api.github.com/users/42B/following{/other_user}","gists_url":"https://api.github.com/users/42B/gists{/gist_id}","starred_url":"https://api.github.com/users/42B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/42B/subscriptions","organizations_url":"https://api.github.com/users/42B/orgs","repos_url":"https://api.github.com/users/42B/repos","events_url":"https://api.github.com/users/42B/events{/privacy}","received_events_url":"https://api.github.com/users/42B/received_events","type":"User","site_admin":false},"body":"`default` is already set to `True`...","created_at":"2018-11-18T20:27:30Z","updated_at":"2018-11-18T20:30:57Z","html_url":"https://github.com/demisto/demisto-py/pull/10#discussion_r234460476","pull_request_url":"https://api.github.com/repos/demisto/demisto-py/pulls/10","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/demisto/demisto-py/pulls/comments/234460476"},"html":{"href":"https://github.com/demisto/demisto-py/pull/10#discussion_r234460476"},"pull_request":{"href":"https://api.github.com/repos/demisto/demisto-py/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/demisto/demisto-py/pulls/10","id":231770218,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxNzcwMjE4","html_url":"https://github.com/demisto/demisto-py/pull/10","diff_url":"https://github.com/demisto/demisto-py/pull/10.diff","patch_url":"https://github.com/demisto/demisto-py/pull/10.patch","issue_url":"https://api.github.com/repos/demisto/demisto-py/issues/10","number":10,"state":"open","locked":false,"title":"added methods to interact automation object","user":{"login":"omitroom13","id":22601789,"node_id":"MDQ6VXNlcjIyNjAxNzg5","avatar_url":"https://avatars1.githubusercontent.com/u/22601789?v=4","gravatar_id":"","url":"https://api.github.com/users/omitroom13","html_url":"https://github.com/omitroom13","followers_url":"https://api.github.com/users/omitroom13/followers","following_url":"https://api.github.com/users/omitroom13/following{/other_user}","gists_url":"https://api.github.com/users/omitroom13/gists{/gist_id}","starred_url":"https://api.github.com/users/omitroom13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omitroom13/subscriptions","organizations_url":"https://api.github.com/users/omitroom13/orgs","repos_url":"https://api.github.com/users/omitroom13/repos","events_url":"https://api.github.com/users/omitroom13/events{/privacy}","received_events_url":"https://api.github.com/users/omitroom13/received_events","type":"User","site_admin":false},"body":"**added methods to interact automation object**\r\n- demisto/client.py\r\n  - SearchAutomation\r\n  - LoadAutomation\r\n  - UpdateAutomation\r\n  - SaveAutomation\r\n  - DeleteAutomation\r\n- update_automation_example.py\r\n  - sample/test code for *Automation\r\n\r\n**linted by 2to3/autopep8/pycodestyle/flake8**\r\n- batch_util_example.py\r\n- create_incident_example.py\r\n- demisto/\\_\\_init\\_\\_.py\r\n- incidents_mttr_example.py\r\n- indicators_search_example.py\r\n- integrations_example.py\r\n- widget_upload.py\r\n","created_at":"2018-11-18T05:47:07Z","updated_at":"2018-11-18T20:30:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"525b4737e514e7bad75b14b156d4988f0ba4cc4c","assignee":{"login":"yaakovi","id":30797606,"node_id":"MDQ6VXNlcjMwNzk3NjA2","avatar_url":"https://avatars1.githubusercontent.com/u/30797606?v=4","gravatar_id":"","url":"https://api.github.com/users/yaakovi","html_url":"https://github.com/yaakovi","followers_url":"https://api.github.com/users/yaakovi/followers","following_url":"https://api.github.com/users/yaakovi/following{/other_user}","gists_url":"https://api.github.com/users/yaakovi/gists{/gist_id}","starred_url":"https://api.github.com/users/yaakovi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaakovi/subscriptions","organizations_url":"https://api.github.com/users/yaakovi/orgs","repos_url":"https://api.github.com/users/yaakovi/repos","events_url":"https://api.github.com/users/yaakovi/events{/privacy}","received_events_url":"https://api.github.com/users/yaakovi/received_events","type":"User","site_admin":false},"assignees":[{"login":"yaakovi","id":30797606,"node_id":"MDQ6VXNlcjMwNzk3NjA2","avatar_url":"https://avatars1.githubusercontent.com/u/30797606?v=4","gravatar_id":"","url":"https://api.github.com/users/yaakovi","html_url":"https://github.com/yaakovi","followers_url":"https://api.github.com/users/yaakovi/followers","following_url":"https://api.github.com/users/yaakovi/following{/other_user}","gists_url":"https://api.github.com/users/yaakovi/gists{/gist_id}","starred_url":"https://api.github.com/users/yaakovi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaakovi/subscriptions","organizations_url":"https://api.github.com/users/yaakovi/orgs","repos_url":"https://api.github.com/users/yaakovi/repos","events_url":"https://api.github.com/users/yaakovi/events{/privacy}","received_events_url":"https://api.github.com/users/yaakovi/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"yaakovi","id":30797606,"node_id":"MDQ6VXNlcjMwNzk3NjA2","avatar_url":"https://avatars1.githubusercontent.com/u/30797606?v=4","gravatar_id":"","url":"https://api.github.com/users/yaakovi","html_url":"https://github.com/yaakovi","followers_url":"https://api.github.com/users/yaakovi/followers","following_url":"https://api.github.com/users/yaakovi/following{/other_user}","gists_url":"https://api.github.com/users/yaakovi/gists{/gist_id}","starred_url":"https://api.github.com/users/yaakovi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaakovi/subscriptions","organizations_url":"https://api.github.com/users/yaakovi/orgs","repos_url":"https://api.github.com/users/yaakovi/repos","events_url":"https://api.github.com/users/yaakovi/events{/privacy}","received_events_url":"https://api.github.com/users/yaakovi/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/demisto/demisto-py/pulls/10/commits","review_comments_url":"https://api.github.com/repos/demisto/demisto-py/pulls/10/comments","review_comment_url":"https://api.github.com/repos/demisto/demisto-py/pulls/comments{/number}","comments_url":"https://api.github.com/repos/demisto/demisto-py/issues/10/comments","statuses_url":"https://api.github.com/repos/demisto/demisto-py/statuses/a0e81c5f4aa74b65934a30db96241d204ca39f29","head":{"label":"omitroom13:master","ref":"master","sha":"a0e81c5f4aa74b65934a30db96241d204ca39f29","user":{"login":"omitroom13","id":22601789,"node_id":"MDQ6VXNlcjIyNjAxNzg5","avatar_url":"https://avatars1.githubusercontent.com/u/22601789?v=4","gravatar_id":"","url":"https://api.github.com/users/omitroom13","html_url":"https://github.com/omitroom13","followers_url":"https://api.github.com/users/omitroom13/followers","following_url":"https://api.github.com/users/omitroom13/following{/other_user}","gists_url":"https://api.github.com/users/omitroom13/gists{/gist_id}","starred_url":"https://api.github.com/users/omitroom13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omitroom13/subscriptions","organizations_url":"https://api.github.com/users/omitroom13/orgs","repos_url":"https://api.github.com/users/omitroom13/repos","events_url":"https://api.github.com/users/omitroom13/events{/privacy}","received_events_url":"https://api.github.com/users/omitroom13/received_events","type":"User","site_admin":false},"repo":{"id":157964732,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc5NjQ3MzI=","name":"demisto-py","full_name":"omitroom13/demisto-py","private":false,"owner":{"login":"omitroom13","id":22601789,"node_id":"MDQ6VXNlcjIyNjAxNzg5","avatar_url":"https://avatars1.githubusercontent.com/u/22601789?v=4","gravatar_id":"","url":"https://api.github.com/users/omitroom13","html_url":"https://github.com/omitroom13","followers_url":"https://api.github.com/users/omitroom13/followers","following_url":"https://api.github.com/users/omitroom13/following{/other_user}","gists_url":"https://api.github.com/users/omitroom13/gists{/gist_id}","starred_url":"https://api.github.com/users/omitroom13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omitroom13/subscriptions","organizations_url":"https://api.github.com/users/omitroom13/orgs","repos_url":"https://api.github.com/users/omitroom13/repos","events_url":"https://api.github.com/users/omitroom13/events{/privacy}","received_events_url":"https://api.github.com/users/omitroom13/received_events","type":"User","site_admin":false},"html_url":"https://github.com/omitroom13/demisto-py","description":"A Python library for the Demisto API","fork":true,"url":"https://api.github.com/repos/omitroom13/demisto-py","forks_url":"https://api.github.com/repos/omitroom13/demisto-py/forks","keys_url":"https://api.github.com/repos/omitroom13/demisto-py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omitroom13/demisto-py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omitroom13/demisto-py/teams","hooks_url":"https://api.github.com/repos/omitroom13/demisto-py/hooks","issue_events_url":"https://api.github.com/repos/omitroom13/demisto-py/issues/events{/number}","events_url":"https://api.github.com/repos/omitroom13/demisto-py/events","assignees_url":"https://api.github.com/repos/omitroom13/demisto-py/assignees{/user}","branches_url":"https://api.github.com/repos/omitroom13/demisto-py/branches{/branch}","tags_url":"https://api.github.com/repos/omitroom13/demisto-py/tags","blobs_url":"https://api.github.com/repos/omitroom13/demisto-py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omitroom13/demisto-py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omitroom13/demisto-py/git/refs{/sha}","trees_url":"https://api.github.com/repos/omitroom13/demisto-py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omitroom13/demisto-py/statuses/{sha}","languages_url":"https://api.github.com/repos/omitroom13/demisto-py/languages","stargazers_url":"https://api.github.com/repos/omitroom13/demisto-py/stargazers","contributors_url":"https://api.github.com/repos/omitroom13/demisto-py/contributors","subscribers_url":"https://api.github.com/repos/omitroom13/demisto-py/subscribers","subscription_url":"https://api.github.com/repos/omitroom13/demisto-py/subscription","commits_url":"https://api.github.com/repos/omitroom13/demisto-py/commits{/sha}","git_commits_url":"https://api.github.com/repos/omitroom13/demisto-py/git/commits{/sha}","comments_url":"https://api.github.com/repos/omitroom13/demisto-py/comments{/number}","issue_comment_url":"https://api.github.com/repos/omitroom13/demisto-py/issues/comments{/number}","contents_url":"https://api.github.com/repos/omitroom13/demisto-py/contents/{+path}","compare_url":"https://api.github.com/repos/omitroom13/demisto-py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omitroom13/demisto-py/merges","archive_url":"https://api.github.com/repos/omitroom13/demisto-py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omitroom13/demisto-py/downloads","issues_url":"https://api.github.com/repos/omitroom13/demisto-py/issues{/number}","pulls_url":"https://api.github.com/repos/omitroom13/demisto-py/pulls{/number}","milestones_url":"https://api.github.com/repos/omitroom13/demisto-py/milestones{/number}","notifications_url":"https://api.github.com/repos/omitroom13/demisto-py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omitroom13/demisto-py/labels{/name}","releases_url":"https://api.github.com/repos/omitroom13/demisto-py/releases{/id}","deployments_url":"https://api.github.com/repos/omitroom13/demisto-py/deployments","created_at":"2018-11-17T08:19:58Z","updated_at":"2018-11-18T07:43:54Z","pushed_at":"2018-11-18T07:43:52Z","git_url":"git://github.com/omitroom13/demisto-py.git","ssh_url":"git@github.com:omitroom13/demisto-py.git","clone_url":"https://github.com/omitroom13/demisto-py.git","svn_url":"https://github.com/omitroom13/demisto-py","homepage":"","size":49,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"demisto:master","ref":"master","sha":"3c930ebbcebe8aefeba8c116d08ddb2f0293bef7","user":{"login":"demisto","id":11011767,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMDExNzY3","avatar_url":"https://avatars1.githubusercontent.com/u/11011767?v=4","gravatar_id":"","url":"https://api.github.com/users/demisto","html_url":"https://github.com/demisto","followers_url":"https://api.github.com/users/demisto/followers","following_url":"https://api.github.com/users/demisto/following{/other_user}","gists_url":"https://api.github.com/users/demisto/gists{/gist_id}","starred_url":"https://api.github.com/users/demisto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demisto/subscriptions","organizations_url":"https://api.github.com/users/demisto/orgs","repos_url":"https://api.github.com/users/demisto/repos","events_url":"https://api.github.com/users/demisto/events{/privacy}","received_events_url":"https://api.github.com/users/demisto/received_events","type":"Organization","site_admin":false},"repo":{"id":81979463,"node_id":"MDEwOlJlcG9zaXRvcnk4MTk3OTQ2Mw==","name":"demisto-py","full_name":"demisto/demisto-py","private":false,"owner":{"login":"demisto","id":11011767,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMDExNzY3","avatar_url":"https://avatars1.githubusercontent.com/u/11011767?v=4","gravatar_id":"","url":"https://api.github.com/users/demisto","html_url":"https://github.com/demisto","followers_url":"https://api.github.com/users/demisto/followers","following_url":"https://api.github.com/users/demisto/following{/other_user}","gists_url":"https://api.github.com/users/demisto/gists{/gist_id}","starred_url":"https://api.github.com/users/demisto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demisto/subscriptions","organizations_url":"https://api.github.com/users/demisto/orgs","repos_url":"https://api.github.com/users/demisto/repos","events_url":"https://api.github.com/users/demisto/events{/privacy}","received_events_url":"https://api.github.com/users/demisto/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/demisto/demisto-py","description":"A Python library for the Demisto API","fork":false,"url":"https://api.github.com/repos/demisto/demisto-py","forks_url":"https://api.github.com/repos/demisto/demisto-py/forks","keys_url":"https://api.github.com/repos/demisto/demisto-py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/demisto/demisto-py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/demisto/demisto-py/teams","hooks_url":"https://api.github.com/repos/demisto/demisto-py/hooks","issue_events_url":"https://api.github.com/repos/demisto/demisto-py/issues/events{/number}","events_url":"https://api.github.com/repos/demisto/demisto-py/events","assignees_url":"https://api.github.com/repos/demisto/demisto-py/assignees{/user}","branches_url":"https://api.github.com/repos/demisto/demisto-py/branches{/branch}","tags_url":"https://api.github.com/repos/demisto/demisto-py/tags","blobs_url":"https://api.github.com/repos/demisto/demisto-py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/demisto/demisto-py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/demisto/demisto-py/git/refs{/sha}","trees_url":"https://api.github.com/repos/demisto/demisto-py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/demisto/demisto-py/statuses/{sha}","languages_url":"https://api.github.com/repos/demisto/demisto-py/languages","stargazers_url":"https://api.github.com/repos/demisto/demisto-py/stargazers","contributors_url":"https://api.github.com/repos/demisto/demisto-py/contributors","subscribers_url":"https://api.github.com/repos/demisto/demisto-py/subscribers","subscription_url":"https://api.github.com/repos/demisto/demisto-py/subscription","commits_url":"https://api.github.com/repos/demisto/demisto-py/commits{/sha}","git_commits_url":"https://api.github.com/repos/demisto/demisto-py/git/commits{/sha}","comments_url":"https://api.github.com/repos/demisto/demisto-py/comments{/number}","issue_comment_url":"https://api.github.com/repos/demisto/demisto-py/issues/comments{/number}","contents_url":"https://api.github.com/repos/demisto/demisto-py/contents/{+path}","compare_url":"https://api.github.com/repos/demisto/demisto-py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/demisto/demisto-py/merges","archive_url":"https://api.github.com/repos/demisto/demisto-py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/demisto/demisto-py/downloads","issues_url":"https://api.github.com/repos/demisto/demisto-py/issues{/number}","pulls_url":"https://api.github.com/repos/demisto/demisto-py/pulls{/number}","milestones_url":"https://api.github.com/repos/demisto/demisto-py/milestones{/number}","notifications_url":"https://api.github.com/repos/demisto/demisto-py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/demisto/demisto-py/labels{/name}","releases_url":"https://api.github.com/repos/demisto/demisto-py/releases{/id}","deployments_url":"https://api.github.com/repos/demisto/demisto-py/deployments","created_at":"2017-02-14T19:09:05Z","updated_at":"2018-11-06T11:21:32Z","pushed_at":"2018-11-18T07:43:53Z","git_url":"git://github.com/demisto/demisto-py.git","ssh_url":"git@github.com:demisto/demisto-py.git","clone_url":"https://github.com/demisto/demisto-py.git","svn_url":"https://github.com/demisto/demisto-py","homepage":"","size":37,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":8,"open_issues":3,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/demisto/demisto-py/pulls/10"},"html":{"href":"https://github.com/demisto/demisto-py/pull/10"},"issue":{"href":"https://api.github.com/repos/demisto/demisto-py/issues/10"},"comments":{"href":"https://api.github.com/repos/demisto/demisto-py/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/demisto/demisto-py/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/demisto/demisto-py/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/demisto/demisto-py/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/demisto/demisto-py/statuses/a0e81c5f4aa74b65934a30db96241d204ca39f29"}},"author_association":"NONE"}}
{"actor":{"display_login":"42B"}}