{"action":"created","comment":{"url":"https://api.github.com/repos/fabianforce/GithubKotlin/pulls/comments/224571765","pull_request_review_id":163973451,"id":224571765,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDU3MTc2NQ==","diff_hunk":"@@ -15,27 +17,38 @@ import retrofit2.Response\n \n class MainActivity : AppCompatActivity(), View.OnClickListener, Callback<ResponseBody> {\n \n+    var clientID = \"359db5ebe639b78226ce\"\n+    var ClientSecret = \"9d21d8f058e7bccda39fbe8c5f042ca386f4efa0\"\n+    var redirectUri = \"fabian://callback\"\n     override fun onCreate(savedInstanceState: Bundle?) {\n         super.onCreate(savedInstanceState)\n         setContentView(R.layout.activity_main)\n         btn_login!!.setOnClickListener(this)\n+        val intent = Intent(Intent.ACTION_VIEW, Uri.parse(\"https://github.com/login/oauth/authorize?client_id=\" +\n+                \"$clientID&scope=repo&redirect_uri=$redirectUri\"))\n+        startActivity(intent)\n     }\n \n     override fun onClick(v: View?) {\n-       Login()\n+        Login()\n     }\n \n     private fun Login() {\n         val posting = GithubApiService.create()\n-        posting.login(txt_user.text.toString(), txt_password.text.toString()).enqueue(this)\n+        posting.login(clientID, ClientSecret, \"\").enqueue(this)\n     }\n \n     override fun onFailure(call: Call<ResponseBody>, t: Throwable) {\n-        Toast.makeText(baseContext ,txt_user.text.toString() + t.localizedMessage , Toast.LENGTH_LONG).show()\n+        Toast.makeText(baseContext, \"msg\" + t.localizedMessage, Toast.LENGTH_LONG).show()\n     }\n \n     override fun onResponse(call: Call<ResponseBody>, response: Response<ResponseBody>) {\n-        Toast.makeText(baseContext , txt_user.text.toString() + response.body().toString(), Toast.LENGTH_LONG).show()\n+        Toast.makeText(baseContext, \"msg\" + response.code(), Toast.LENGTH_LONG).show()\n+    }\n+\n+    override fun onResume() {\n+        super.onResume()\n+        //var url = intent.data","path":"app/src/main/java/com/decoled/codering/githubkotlin/MainActivity.kt","position":52,"original_position":47,"commit_id":"3dd18ab2066b27ea698c5b0640c2ff2d8edf72d7","original_commit_id":"3dd18ab2066b27ea698c5b0640c2ff2d8edf72d7","user":{"login":"fabianforce","id":6455659,"node_id":"MDQ6VXNlcjY0NTU2NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/6455659?v=4","gravatar_id":"","url":"https://api.github.com/users/fabianforce","html_url":"https://github.com/fabianforce","followers_url":"https://api.github.com/users/fabianforce/followers","following_url":"https://api.github.com/users/fabianforce/following{/other_user}","gists_url":"https://api.github.com/users/fabianforce/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianforce/subscriptions","organizations_url":"https://api.github.com/users/fabianforce/orgs","repos_url":"https://api.github.com/users/fabianforce/repos","events_url":"https://api.github.com/users/fabianforce/events{/privacy}","received_events_url":"https://api.github.com/users/fabianforce/received_events","type":"User","site_admin":false},"body":"lo siento Katy \r\n","created_at":"2018-10-11T19:16:20Z","updated_at":"2018-10-11T19:16:20Z","html_url":"https://github.com/fabianforce/GithubKotlin/pull/1#discussion_r224571765","pull_request_url":"https://api.github.com/repos/fabianforce/GithubKotlin/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/fabianforce/GithubKotlin/pulls/comments/224571765"},"html":{"href":"https://github.com/fabianforce/GithubKotlin/pull/1#discussion_r224571765"},"pull_request":{"href":"https://api.github.com/repos/fabianforce/GithubKotlin/pulls/1"}},"in_reply_to_id":224569237},"pull_request":{"url":"https://api.github.com/repos/fabianforce/GithubKotlin/pulls/1","id":221639977,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNjM5OTc3","html_url":"https://github.com/fabianforce/GithubKotlin/pull/1","diff_url":"https://github.com/fabianforce/GithubKotlin/pull/1.diff","patch_url":"https://github.com/fabianforce/GithubKotlin/pull/1.patch","issue_url":"https://api.github.com/repos/fabianforce/GithubKotlin/issues/1","number":1,"state":"open","locked":false,"title":"View Log In","user":{"login":"fabianforce","id":6455659,"node_id":"MDQ6VXNlcjY0NTU2NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/6455659?v=4","gravatar_id":"","url":"https://api.github.com/users/fabianforce","html_url":"https://github.com/fabianforce","followers_url":"https://api.github.com/users/fabianforce/followers","following_url":"https://api.github.com/users/fabianforce/following{/other_user}","gists_url":"https://api.github.com/users/fabianforce/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianforce/subscriptions","organizations_url":"https://api.github.com/users/fabianforce/orgs","repos_url":"https://api.github.com/users/fabianforce/repos","events_url":"https://api.github.com/users/fabianforce/events{/privacy}","received_events_url":"https://api.github.com/users/fabianforce/received_events","type":"User","site_admin":false},"body":"XML Layout Log In","created_at":"2018-10-10T02:25:04Z","updated_at":"2018-10-11T19:16:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f554829139239e8328cf82bb2d00de910d1a41ef","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fabianforce/GithubKotlin/pulls/1/commits","review_comments_url":"https://api.github.com/repos/fabianforce/GithubKotlin/pulls/1/comments","review_comment_url":"https://api.github.com/repos/fabianforce/GithubKotlin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fabianforce/GithubKotlin/issues/1/comments","statuses_url":"https://api.github.com/repos/fabianforce/GithubKotlin/statuses/3dd18ab2066b27ea698c5b0640c2ff2d8edf72d7","head":{"label":"fabianforce:ViewLogin","ref":"ViewLogin","sha":"3dd18ab2066b27ea698c5b0640c2ff2d8edf72d7","user":{"login":"fabianforce","id":6455659,"node_id":"MDQ6VXNlcjY0NTU2NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/6455659?v=4","gravatar_id":"","url":"https://api.github.com/users/fabianforce","html_url":"https://github.com/fabianforce","followers_url":"https://api.github.com/users/fabianforce/followers","following_url":"https://api.github.com/users/fabianforce/following{/other_user}","gists_url":"https://api.github.com/users/fabianforce/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianforce/subscriptions","organizations_url":"https://api.github.com/users/fabianforce/orgs","repos_url":"https://api.github.com/users/fabianforce/repos","events_url":"https://api.github.com/users/fabianforce/events{/privacy}","received_events_url":"https://api.github.com/users/fabianforce/received_events","type":"User","site_admin":false},"repo":{"id":152343417,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzNDM0MTc=","name":"GithubKotlin","full_name":"fabianforce/GithubKotlin","private":false,"owner":{"login":"fabianforce","id":6455659,"node_id":"MDQ6VXNlcjY0NTU2NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/6455659?v=4","gravatar_id":"","url":"https://api.github.com/users/fabianforce","html_url":"https://github.com/fabianforce","followers_url":"https://api.github.com/users/fabianforce/followers","following_url":"https://api.github.com/users/fabianforce/following{/other_user}","gists_url":"https://api.github.com/users/fabianforce/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianforce/subscriptions","organizations_url":"https://api.github.com/users/fabianforce/orgs","repos_url":"https://api.github.com/users/fabianforce/repos","events_url":"https://api.github.com/users/fabianforce/events{/privacy}","received_events_url":"https://api.github.com/users/fabianforce/received_events","type":"User","site_admin":false},"html_url":"https://github.com/fabianforce/GithubKotlin","description":"Hi","fork":false,"url":"https://api.github.com/repos/fabianforce/GithubKotlin","forks_url":"https://api.github.com/repos/fabianforce/GithubKotlin/forks","keys_url":"https://api.github.com/repos/fabianforce/GithubKotlin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fabianforce/GithubKotlin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fabianforce/GithubKotlin/teams","hooks_url":"https://api.github.com/repos/fabianforce/GithubKotlin/hooks","issue_events_url":"https://api.github.com/repos/fabianforce/GithubKotlin/issues/events{/number}","events_url":"https://api.github.com/repos/fabianforce/GithubKotlin/events","assignees_url":"https://api.github.com/repos/fabianforce/GithubKotlin/assignees{/user}","branches_url":"https://api.github.com/repos/fabianforce/GithubKotlin/branches{/branch}","tags_url":"https://api.github.com/repos/fabianforce/GithubKotlin/tags","blobs_url":"https://api.github.com/repos/fabianforce/GithubKotlin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fabianforce/GithubKotlin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fabianforce/GithubKotlin/git/refs{/sha}","trees_url":"https://api.github.com/repos/fabianforce/GithubKotlin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fabianforce/GithubKotlin/statuses/{sha}","languages_url":"https://api.github.com/repos/fabianforce/GithubKotlin/languages","stargazers_url":"https://api.github.com/repos/fabianforce/GithubKotlin/stargazers","contributors_url":"https://api.github.com/repos/fabianforce/GithubKotlin/contributors","subscribers_url":"https://api.github.com/repos/fabianforce/GithubKotlin/subscribers","subscription_url":"https://api.github.com/repos/fabianforce/GithubKotlin/subscription","commits_url":"https://api.github.com/repos/fabianforce/GithubKotlin/commits{/sha}","git_commits_url":"https://api.github.com/repos/fabianforce/GithubKotlin/git/commits{/sha}","comments_url":"https://api.github.com/repos/fabianforce/GithubKotlin/comments{/number}","issue_comment_url":"https://api.github.com/repos/fabianforce/GithubKotlin/issues/comments{/number}","contents_url":"https://api.github.com/repos/fabianforce/GithubKotlin/contents/{+path}","compare_url":"https://api.github.com/repos/fabianforce/GithubKotlin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fabianforce/GithubKotlin/merges","archive_url":"https://api.github.com/repos/fabianforce/GithubKotlin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fabianforce/GithubKotlin/downloads","issues_url":"https://api.github.com/repos/fabianforce/GithubKotlin/issues{/number}","pulls_url":"https://api.github.com/repos/fabianforce/GithubKotlin/pulls{/number}","milestones_url":"https://api.github.com/repos/fabianforce/GithubKotlin/milestones{/number}","notifications_url":"https://api.github.com/repos/fabianforce/GithubKotlin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fabianforce/GithubKotlin/labels{/name}","releases_url":"https://api.github.com/repos/fabianforce/GithubKotlin/releases{/id}","deployments_url":"https://api.github.com/repos/fabianforce/GithubKotlin/deployments","created_at":"2018-10-10T01:17:58Z","updated_at":"2018-10-10T01:27:48Z","pushed_at":"2018-10-11T18:56:11Z","git_url":"git://github.com/fabianforce/GithubKotlin.git","ssh_url":"git@github.com:fabianforce/GithubKotlin.git","clone_url":"https://github.com/fabianforce/GithubKotlin.git","svn_url":"https://github.com/fabianforce/GithubKotlin","homepage":null,"size":200,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"fabianforce:master","ref":"master","sha":"49a16178d2d1a2d49f609f94ac7e213f73b78016","user":{"login":"fabianforce","id":6455659,"node_id":"MDQ6VXNlcjY0NTU2NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/6455659?v=4","gravatar_id":"","url":"https://api.github.com/users/fabianforce","html_url":"https://github.com/fabianforce","followers_url":"https://api.github.com/users/fabianforce/followers","following_url":"https://api.github.com/users/fabianforce/following{/other_user}","gists_url":"https://api.github.com/users/fabianforce/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianforce/subscriptions","organizations_url":"https://api.github.com/users/fabianforce/orgs","repos_url":"https://api.github.com/users/fabianforce/repos","events_url":"https://api.github.com/users/fabianforce/events{/privacy}","received_events_url":"https://api.github.com/users/fabianforce/received_events","type":"User","site_admin":false},"repo":{"id":152343417,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzNDM0MTc=","name":"GithubKotlin","full_name":"fabianforce/GithubKotlin","private":false,"owner":{"login":"fabianforce","id":6455659,"node_id":"MDQ6VXNlcjY0NTU2NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/6455659?v=4","gravatar_id":"","url":"https://api.github.com/users/fabianforce","html_url":"https://github.com/fabianforce","followers_url":"https://api.github.com/users/fabianforce/followers","following_url":"https://api.github.com/users/fabianforce/following{/other_user}","gists_url":"https://api.github.com/users/fabianforce/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianforce/subscriptions","organizations_url":"https://api.github.com/users/fabianforce/orgs","repos_url":"https://api.github.com/users/fabianforce/repos","events_url":"https://api.github.com/users/fabianforce/events{/privacy}","received_events_url":"https://api.github.com/users/fabianforce/received_events","type":"User","site_admin":false},"html_url":"https://github.com/fabianforce/GithubKotlin","description":"Hi","fork":false,"url":"https://api.github.com/repos/fabianforce/GithubKotlin","forks_url":"https://api.github.com/repos/fabianforce/GithubKotlin/forks","keys_url":"https://api.github.com/repos/fabianforce/GithubKotlin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fabianforce/GithubKotlin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fabianforce/GithubKotlin/teams","hooks_url":"https://api.github.com/repos/fabianforce/GithubKotlin/hooks","issue_events_url":"https://api.github.com/repos/fabianforce/GithubKotlin/issues/events{/number}","events_url":"https://api.github.com/repos/fabianforce/GithubKotlin/events","assignees_url":"https://api.github.com/repos/fabianforce/GithubKotlin/assignees{/user}","branches_url":"https://api.github.com/repos/fabianforce/GithubKotlin/branches{/branch}","tags_url":"https://api.github.com/repos/fabianforce/GithubKotlin/tags","blobs_url":"https://api.github.com/repos/fabianforce/GithubKotlin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fabianforce/GithubKotlin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fabianforce/GithubKotlin/git/refs{/sha}","trees_url":"https://api.github.com/repos/fabianforce/GithubKotlin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fabianforce/GithubKotlin/statuses/{sha}","languages_url":"https://api.github.com/repos/fabianforce/GithubKotlin/languages","stargazers_url":"https://api.github.com/repos/fabianforce/GithubKotlin/stargazers","contributors_url":"https://api.github.com/repos/fabianforce/GithubKotlin/contributors","subscribers_url":"https://api.github.com/repos/fabianforce/GithubKotlin/subscribers","subscription_url":"https://api.github.com/repos/fabianforce/GithubKotlin/subscription","commits_url":"https://api.github.com/repos/fabianforce/GithubKotlin/commits{/sha}","git_commits_url":"https://api.github.com/repos/fabianforce/GithubKotlin/git/commits{/sha}","comments_url":"https://api.github.com/repos/fabianforce/GithubKotlin/comments{/number}","issue_comment_url":"https://api.github.com/repos/fabianforce/GithubKotlin/issues/comments{/number}","contents_url":"https://api.github.com/repos/fabianforce/GithubKotlin/contents/{+path}","compare_url":"https://api.github.com/repos/fabianforce/GithubKotlin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fabianforce/GithubKotlin/merges","archive_url":"https://api.github.com/repos/fabianforce/GithubKotlin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fabianforce/GithubKotlin/downloads","issues_url":"https://api.github.com/repos/fabianforce/GithubKotlin/issues{/number}","pulls_url":"https://api.github.com/repos/fabianforce/GithubKotlin/pulls{/number}","milestones_url":"https://api.github.com/repos/fabianforce/GithubKotlin/milestones{/number}","notifications_url":"https://api.github.com/repos/fabianforce/GithubKotlin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fabianforce/GithubKotlin/labels{/name}","releases_url":"https://api.github.com/repos/fabianforce/GithubKotlin/releases{/id}","deployments_url":"https://api.github.com/repos/fabianforce/GithubKotlin/deployments","created_at":"2018-10-10T01:17:58Z","updated_at":"2018-10-10T01:27:48Z","pushed_at":"2018-10-11T18:56:11Z","git_url":"git://github.com/fabianforce/GithubKotlin.git","ssh_url":"git@github.com:fabianforce/GithubKotlin.git","clone_url":"https://github.com/fabianforce/GithubKotlin.git","svn_url":"https://github.com/fabianforce/GithubKotlin","homepage":null,"size":200,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fabianforce/GithubKotlin/pulls/1"},"html":{"href":"https://github.com/fabianforce/GithubKotlin/pull/1"},"issue":{"href":"https://api.github.com/repos/fabianforce/GithubKotlin/issues/1"},"comments":{"href":"https://api.github.com/repos/fabianforce/GithubKotlin/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/fabianforce/GithubKotlin/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/fabianforce/GithubKotlin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fabianforce/GithubKotlin/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/fabianforce/GithubKotlin/statuses/3dd18ab2066b27ea698c5b0640c2ff2d8edf72d7"}},"author_association":"OWNER"}}
{"actor":{"display_login":"fabianforce"}}