{"action":"created","comment":{"url":"https://api.github.com/repos/microservice/wolfram/pulls/comments/244688714","pull_request_review_id":188618413,"id":244688714,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDY4ODcxNA==","diff_hunk":"@@ -0,0 +1,52 @@\n+# -*- coding: utf-8 -*-\n+import json\n+import os\n+import requests\n+import urllib.parse\n+\n+from flask import Flask, make_response, request\n+\n+class Handler:\n+    app = Flask(__name__)\n+\n+    def __init__(self) -> None:\n+        self.app_id = os.getenv('WOLFRAM_APP_ID')\n+\n+\n+    def make_short_answer(self):\n+        req = request.get_json()\n+        query = {'i': req['query']}\n+        encoded_query = urllib.parse.urlencode(query)\n+        try:\n+            units = req['units']\n+        except:\n+            units = \"metric\"","path":"app.py","position":23,"original_position":23,"commit_id":"04b864d658839c77d8a1aebcc26736563218ecad","original_commit_id":"04b864d658839c77d8a1aebcc26736563218ecad","user":{"login":"judepereira","id":747087,"node_id":"MDQ6VXNlcjc0NzA4Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/747087?v=4","gravatar_id":"","url":"https://api.github.com/users/judepereira","html_url":"https://github.com/judepereira","followers_url":"https://api.github.com/users/judepereira/followers","following_url":"https://api.github.com/users/judepereira/following{/other_user}","gists_url":"https://api.github.com/users/judepereira/gists{/gist_id}","starred_url":"https://api.github.com/users/judepereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/judepereira/subscriptions","organizations_url":"https://api.github.com/users/judepereira/orgs","repos_url":"https://api.github.com/users/judepereira/repos","events_url":"https://api.github.com/users/judepereira/events{/privacy}","received_events_url":"https://api.github.com/users/judepereira/received_events","type":"User","site_admin":false},"body":"Stick to one set of quotes please. Use `''` everywhere.","created_at":"2019-01-02T09:26:51Z","updated_at":"2019-01-02T09:30:20Z","html_url":"https://github.com/microservice/wolfram/pull/4#discussion_r244688714","pull_request_url":"https://api.github.com/repos/microservice/wolfram/pulls/4","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/microservice/wolfram/pulls/comments/244688714"},"html":{"href":"https://github.com/microservice/wolfram/pull/4#discussion_r244688714"},"pull_request":{"href":"https://api.github.com/repos/microservice/wolfram/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/microservice/wolfram/pulls/4","id":235582622,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1NTgyNjIy","html_url":"https://github.com/microservice/wolfram/pull/4","diff_url":"https://github.com/microservice/wolfram/pull/4.diff","patch_url":"https://github.com/microservice/wolfram/pull/4.patch","issue_url":"https://api.github.com/repos/microservice/wolfram/issues/4","number":4,"state":"open","locked":false,"title":"Updated for wolfram short answer API","user":{"login":"shashanoid","id":5573677,"node_id":"MDQ6VXNlcjU1NzM2Nzc=","avatar_url":"https://avatars1.githubusercontent.com/u/5573677?v=4","gravatar_id":"","url":"https://api.github.com/users/shashanoid","html_url":"https://github.com/shashanoid","followers_url":"https://api.github.com/users/shashanoid/followers","following_url":"https://api.github.com/users/shashanoid/following{/other_user}","gists_url":"https://api.github.com/users/shashanoid/gists{/gist_id}","starred_url":"https://api.github.com/users/shashanoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shashanoid/subscriptions","organizations_url":"https://api.github.com/users/shashanoid/orgs","repos_url":"https://api.github.com/users/shashanoid/repos","events_url":"https://api.github.com/users/shashanoid/events{/privacy}","received_events_url":"https://api.github.com/users/shashanoid/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-03T20:30:56Z","updated_at":"2019-01-02T09:30:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c2be77808000fa13dd7eb88d12701c0146eebc59","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/microservice/wolfram/milestones/1","html_url":"https://github.com/microservice/wolfram/milestone/1","labels_url":"https://api.github.com/repos/microservice/wolfram/milestones/1/labels","id":3869120,"node_id":"MDk6TWlsZXN0b25lMzg2OTEyMA==","number":1,"title":"0.1","description":null,"creator":{"login":"judepereira","id":747087,"node_id":"MDQ6VXNlcjc0NzA4Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/747087?v=4","gravatar_id":"","url":"https://api.github.com/users/judepereira","html_url":"https://github.com/judepereira","followers_url":"https://api.github.com/users/judepereira/followers","following_url":"https://api.github.com/users/judepereira/following{/other_user}","gists_url":"https://api.github.com/users/judepereira/gists{/gist_id}","starred_url":"https://api.github.com/users/judepereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/judepereira/subscriptions","organizations_url":"https://api.github.com/users/judepereira/orgs","repos_url":"https://api.github.com/users/judepereira/repos","events_url":"https://api.github.com/users/judepereira/events{/privacy}","received_events_url":"https://api.github.com/users/judepereira/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2018-12-04T06:00:38Z","updated_at":"2018-12-04T06:00:38Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/microservice/wolfram/pulls/4/commits","review_comments_url":"https://api.github.com/repos/microservice/wolfram/pulls/4/comments","review_comment_url":"https://api.github.com/repos/microservice/wolfram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/microservice/wolfram/issues/4/comments","statuses_url":"https://api.github.com/repos/microservice/wolfram/statuses/04b864d658839c77d8a1aebcc26736563218ecad","head":{"label":"shashanoid:feat/wolfram-shortanswers","ref":"feat/wolfram-shortanswers","sha":"04b864d658839c77d8a1aebcc26736563218ecad","user":{"login":"shashanoid","id":5573677,"node_id":"MDQ6VXNlcjU1NzM2Nzc=","avatar_url":"https://avatars1.githubusercontent.com/u/5573677?v=4","gravatar_id":"","url":"https://api.github.com/users/shashanoid","html_url":"https://github.com/shashanoid","followers_url":"https://api.github.com/users/shashanoid/followers","following_url":"https://api.github.com/users/shashanoid/following{/other_user}","gists_url":"https://api.github.com/users/shashanoid/gists{/gist_id}","starred_url":"https://api.github.com/users/shashanoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shashanoid/subscriptions","organizations_url":"https://api.github.com/users/shashanoid/orgs","repos_url":"https://api.github.com/users/shashanoid/repos","events_url":"https://api.github.com/users/shashanoid/events{/privacy}","received_events_url":"https://api.github.com/users/shashanoid/received_events","type":"User","site_admin":false},"repo":{"id":160246852,"node_id":"MDEwOlJlcG9zaXRvcnkxNjAyNDY4NTI=","name":"wolfram-1","full_name":"shashanoid/wolfram-1","private":false,"owner":{"login":"shashanoid","id":5573677,"node_id":"MDQ6VXNlcjU1NzM2Nzc=","avatar_url":"https://avatars1.githubusercontent.com/u/5573677?v=4","gravatar_id":"","url":"https://api.github.com/users/shashanoid","html_url":"https://github.com/shashanoid","followers_url":"https://api.github.com/users/shashanoid/followers","following_url":"https://api.github.com/users/shashanoid/following{/other_user}","gists_url":"https://api.github.com/users/shashanoid/gists{/gist_id}","starred_url":"https://api.github.com/users/shashanoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shashanoid/subscriptions","organizations_url":"https://api.github.com/users/shashanoid/orgs","repos_url":"https://api.github.com/users/shashanoid/repos","events_url":"https://api.github.com/users/shashanoid/events{/privacy}","received_events_url":"https://api.github.com/users/shashanoid/received_events","type":"User","site_admin":false},"html_url":"https://github.com/shashanoid/wolfram-1","description":"An OMG service exposing Wolfram's API","fork":true,"url":"https://api.github.com/repos/shashanoid/wolfram-1","forks_url":"https://api.github.com/repos/shashanoid/wolfram-1/forks","keys_url":"https://api.github.com/repos/shashanoid/wolfram-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shashanoid/wolfram-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shashanoid/wolfram-1/teams","hooks_url":"https://api.github.com/repos/shashanoid/wolfram-1/hooks","issue_events_url":"https://api.github.com/repos/shashanoid/wolfram-1/issues/events{/number}","events_url":"https://api.github.com/repos/shashanoid/wolfram-1/events","assignees_url":"https://api.github.com/repos/shashanoid/wolfram-1/assignees{/user}","branches_url":"https://api.github.com/repos/shashanoid/wolfram-1/branches{/branch}","tags_url":"https://api.github.com/repos/shashanoid/wolfram-1/tags","blobs_url":"https://api.github.com/repos/shashanoid/wolfram-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shashanoid/wolfram-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shashanoid/wolfram-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/shashanoid/wolfram-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shashanoid/wolfram-1/statuses/{sha}","languages_url":"https://api.github.com/repos/shashanoid/wolfram-1/languages","stargazers_url":"https://api.github.com/repos/shashanoid/wolfram-1/stargazers","contributors_url":"https://api.github.com/repos/shashanoid/wolfram-1/contributors","subscribers_url":"https://api.github.com/repos/shashanoid/wolfram-1/subscribers","subscription_url":"https://api.github.com/repos/shashanoid/wolfram-1/subscription","commits_url":"https://api.github.com/repos/shashanoid/wolfram-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/shashanoid/wolfram-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/shashanoid/wolfram-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/shashanoid/wolfram-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/shashanoid/wolfram-1/contents/{+path}","compare_url":"https://api.github.com/repos/shashanoid/wolfram-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shashanoid/wolfram-1/merges","archive_url":"https://api.github.com/repos/shashanoid/wolfram-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shashanoid/wolfram-1/downloads","issues_url":"https://api.github.com/repos/shashanoid/wolfram-1/issues{/number}","pulls_url":"https://api.github.com/repos/shashanoid/wolfram-1/pulls{/number}","milestones_url":"https://api.github.com/repos/shashanoid/wolfram-1/milestones{/number}","notifications_url":"https://api.github.com/repos/shashanoid/wolfram-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shashanoid/wolfram-1/labels{/name}","releases_url":"https://api.github.com/repos/shashanoid/wolfram-1/releases{/id}","deployments_url":"https://api.github.com/repos/shashanoid/wolfram-1/deployments","created_at":"2018-12-03T20:03:50Z","updated_at":"2018-12-03T20:03:53Z","pushed_at":"2018-12-23T07:59:31Z","git_url":"git://github.com/shashanoid/wolfram-1.git","ssh_url":"git@github.com:shashanoid/wolfram-1.git","clone_url":"https://github.com/shashanoid/wolfram-1.git","svn_url":"https://github.com/shashanoid/wolfram-1","homepage":"https://www.wolframalpha.com/","size":13,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"microservice:master","ref":"master","sha":"db8f01cdffbd6d12aff9d878ce060e3d68b7dbab","user":{"login":"microservice","id":39736122,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NzM2MTIy","avatar_url":"https://avatars1.githubusercontent.com/u/39736122?v=4","gravatar_id":"","url":"https://api.github.com/users/microservice","html_url":"https://github.com/microservice","followers_url":"https://api.github.com/users/microservice/followers","following_url":"https://api.github.com/users/microservice/following{/other_user}","gists_url":"https://api.github.com/users/microservice/gists{/gist_id}","starred_url":"https://api.github.com/users/microservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microservice/subscriptions","organizations_url":"https://api.github.com/users/microservice/orgs","repos_url":"https://api.github.com/users/microservice/repos","events_url":"https://api.github.com/users/microservice/events{/privacy}","received_events_url":"https://api.github.com/users/microservice/received_events","type":"Organization","site_admin":false},"repo":{"id":134538310,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ1MzgzMTA=","name":"wolfram","full_name":"microservice/wolfram","private":false,"owner":{"login":"microservice","id":39736122,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NzM2MTIy","avatar_url":"https://avatars1.githubusercontent.com/u/39736122?v=4","gravatar_id":"","url":"https://api.github.com/users/microservice","html_url":"https://github.com/microservice","followers_url":"https://api.github.com/users/microservice/followers","following_url":"https://api.github.com/users/microservice/following{/other_user}","gists_url":"https://api.github.com/users/microservice/gists{/gist_id}","starred_url":"https://api.github.com/users/microservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microservice/subscriptions","organizations_url":"https://api.github.com/users/microservice/orgs","repos_url":"https://api.github.com/users/microservice/repos","events_url":"https://api.github.com/users/microservice/events{/privacy}","received_events_url":"https://api.github.com/users/microservice/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/microservice/wolfram","description":"An OMG service exposing Wolfram's API","fork":false,"url":"https://api.github.com/repos/microservice/wolfram","forks_url":"https://api.github.com/repos/microservice/wolfram/forks","keys_url":"https://api.github.com/repos/microservice/wolfram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/microservice/wolfram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/microservice/wolfram/teams","hooks_url":"https://api.github.com/repos/microservice/wolfram/hooks","issue_events_url":"https://api.github.com/repos/microservice/wolfram/issues/events{/number}","events_url":"https://api.github.com/repos/microservice/wolfram/events","assignees_url":"https://api.github.com/repos/microservice/wolfram/assignees{/user}","branches_url":"https://api.github.com/repos/microservice/wolfram/branches{/branch}","tags_url":"https://api.github.com/repos/microservice/wolfram/tags","blobs_url":"https://api.github.com/repos/microservice/wolfram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/microservice/wolfram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/microservice/wolfram/git/refs{/sha}","trees_url":"https://api.github.com/repos/microservice/wolfram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/microservice/wolfram/statuses/{sha}","languages_url":"https://api.github.com/repos/microservice/wolfram/languages","stargazers_url":"https://api.github.com/repos/microservice/wolfram/stargazers","contributors_url":"https://api.github.com/repos/microservice/wolfram/contributors","subscribers_url":"https://api.github.com/repos/microservice/wolfram/subscribers","subscription_url":"https://api.github.com/repos/microservice/wolfram/subscription","commits_url":"https://api.github.com/repos/microservice/wolfram/commits{/sha}","git_commits_url":"https://api.github.com/repos/microservice/wolfram/git/commits{/sha}","comments_url":"https://api.github.com/repos/microservice/wolfram/comments{/number}","issue_comment_url":"https://api.github.com/repos/microservice/wolfram/issues/comments{/number}","contents_url":"https://api.github.com/repos/microservice/wolfram/contents/{+path}","compare_url":"https://api.github.com/repos/microservice/wolfram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/microservice/wolfram/merges","archive_url":"https://api.github.com/repos/microservice/wolfram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/microservice/wolfram/downloads","issues_url":"https://api.github.com/repos/microservice/wolfram/issues{/number}","pulls_url":"https://api.github.com/repos/microservice/wolfram/pulls{/number}","milestones_url":"https://api.github.com/repos/microservice/wolfram/milestones{/number}","notifications_url":"https://api.github.com/repos/microservice/wolfram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/microservice/wolfram/labels{/name}","releases_url":"https://api.github.com/repos/microservice/wolfram/releases{/id}","deployments_url":"https://api.github.com/repos/microservice/wolfram/deployments","created_at":"2018-05-23T08:30:34Z","updated_at":"2018-12-03T18:07:59Z","pushed_at":"2018-12-23T07:59:32Z","git_url":"git://github.com/microservice/wolfram.git","ssh_url":"git@github.com:microservice/wolfram.git","clone_url":"https://github.com/microservice/wolfram.git","svn_url":"https://github.com/microservice/wolfram","homepage":"https://www.wolframalpha.com/","size":6,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/microservice/wolfram/pulls/4"},"html":{"href":"https://github.com/microservice/wolfram/pull/4"},"issue":{"href":"https://api.github.com/repos/microservice/wolfram/issues/4"},"comments":{"href":"https://api.github.com/repos/microservice/wolfram/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/microservice/wolfram/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/microservice/wolfram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/microservice/wolfram/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/microservice/wolfram/statuses/04b864d658839c77d8a1aebcc26736563218ecad"}},"author_association":"NONE"}}
{"actor":{"display_login":"judepereira"}}