{"action":"created","comment":{"url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/pulls/comments/110828347","pull_request_review_id":32026606,"id":110828347,"diff_hunk":"@@ -7,14 +7,25 @@\n //\n \n import Foundation\n+import Alamofire\n \n extension API.User {\n+    \n     struct LoginParams {\n         let mail: String\n         let pass: String\n     }\n \n     func login(params: LoginParams, completion: @escaping Completion) {\n-\n+        var headers: [String: String] = [:]\n+        if let base64Encode = \"\\(params.mail):\\(params.pass)\".base64Encode {","path":"Demo/Model/API/UserAPIs.swift","position":16,"original_position":16,"commit_id":"c2da3182810bd81048dc5fe69702cdb454f11535","original_commit_id":"c2da3182810bd81048dc5fe69702cdb454f11535","user":{"login":"at-daonguyen","id":17243137,"avatar_url":"https://avatars3.githubusercontent.com/u/17243137?v=3","gravatar_id":"","url":"https://api.github.com/users/at-daonguyen","html_url":"https://github.com/at-daonguyen","followers_url":"https://api.github.com/users/at-daonguyen/followers","following_url":"https://api.github.com/users/at-daonguyen/following{/other_user}","gists_url":"https://api.github.com/users/at-daonguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/at-daonguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-daonguyen/subscriptions","organizations_url":"https://api.github.com/users/at-daonguyen/orgs","repos_url":"https://api.github.com/users/at-daonguyen/repos","events_url":"https://api.github.com/users/at-daonguyen/events{/privacy}","received_events_url":"https://api.github.com/users/at-daonguyen/received_events","type":"User","site_admin":false},"body":"Can you separate this operation to new function?","created_at":"2017-04-11T07:10:14Z","updated_at":"2017-04-11T07:10:38Z","html_url":"https://github.com/AsianTechInc/AT-MVVM-iOS/pull/4#discussion_r110828347","pull_request_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/pulls/comments/110828347"},"html":{"href":"https://github.com/AsianTechInc/AT-MVVM-iOS/pull/4#discussion_r110828347"},"pull_request":{"href":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/pulls/4","id":115252567,"html_url":"https://github.com/AsianTechInc/AT-MVVM-iOS/pull/4","diff_url":"https://github.com/AsianTechInc/AT-MVVM-iOS/pull/4.diff","patch_url":"https://github.com/AsianTechInc/AT-MVVM-iOS/pull/4.patch","issue_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/issues/4","number":4,"state":"open","locked":false,"title":"Feature - Implement login service","user":{"login":"at-daiho","id":13515505,"avatar_url":"https://avatars1.githubusercontent.com/u/13515505?v=3","gravatar_id":"","url":"https://api.github.com/users/at-daiho","html_url":"https://github.com/at-daiho","followers_url":"https://api.github.com/users/at-daiho/followers","following_url":"https://api.github.com/users/at-daiho/following{/other_user}","gists_url":"https://api.github.com/users/at-daiho/gists{/gist_id}","starred_url":"https://api.github.com/users/at-daiho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-daiho/subscriptions","organizations_url":"https://api.github.com/users/at-daiho/orgs","repos_url":"https://api.github.com/users/at-daiho/repos","events_url":"https://api.github.com/users/at-daiho/events{/privacy}","received_events_url":"https://api.github.com/users/at-daiho/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-11T06:55:53Z","updated_at":"2017-04-11T07:10:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c22437d0f5a3df6788d6e91e855689e1c9b89b31","assignee":{"login":"at-daonguyen","id":17243137,"avatar_url":"https://avatars3.githubusercontent.com/u/17243137?v=3","gravatar_id":"","url":"https://api.github.com/users/at-daonguyen","html_url":"https://github.com/at-daonguyen","followers_url":"https://api.github.com/users/at-daonguyen/followers","following_url":"https://api.github.com/users/at-daonguyen/following{/other_user}","gists_url":"https://api.github.com/users/at-daonguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/at-daonguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-daonguyen/subscriptions","organizations_url":"https://api.github.com/users/at-daonguyen/orgs","repos_url":"https://api.github.com/users/at-daonguyen/repos","events_url":"https://api.github.com/users/at-daonguyen/events{/privacy}","received_events_url":"https://api.github.com/users/at-daonguyen/received_events","type":"User","site_admin":false},"assignees":[{"login":"at-daonguyen","id":17243137,"avatar_url":"https://avatars3.githubusercontent.com/u/17243137?v=3","gravatar_id":"","url":"https://api.github.com/users/at-daonguyen","html_url":"https://github.com/at-daonguyen","followers_url":"https://api.github.com/users/at-daonguyen/followers","following_url":"https://api.github.com/users/at-daonguyen/following{/other_user}","gists_url":"https://api.github.com/users/at-daonguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/at-daonguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-daonguyen/subscriptions","organizations_url":"https://api.github.com/users/at-daonguyen/orgs","repos_url":"https://api.github.com/users/at-daonguyen/repos","events_url":"https://api.github.com/users/at-daonguyen/events{/privacy}","received_events_url":"https://api.github.com/users/at-daonguyen/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/pulls/4/commits","review_comments_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/pulls/4/comments","review_comment_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/issues/4/comments","statuses_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/statuses/c2da3182810bd81048dc5fe69702cdb454f11535","head":{"label":"AsianTechInc:feature/login-service","ref":"feature/login-service","sha":"c2da3182810bd81048dc5fe69702cdb454f11535","user":{"login":"AsianTechInc","id":12997183,"avatar_url":"https://avatars0.githubusercontent.com/u/12997183?v=3","gravatar_id":"","url":"https://api.github.com/users/AsianTechInc","html_url":"https://github.com/AsianTechInc","followers_url":"https://api.github.com/users/AsianTechInc/followers","following_url":"https://api.github.com/users/AsianTechInc/following{/other_user}","gists_url":"https://api.github.com/users/AsianTechInc/gists{/gist_id}","starred_url":"https://api.github.com/users/AsianTechInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AsianTechInc/subscriptions","organizations_url":"https://api.github.com/users/AsianTechInc/orgs","repos_url":"https://api.github.com/users/AsianTechInc/repos","events_url":"https://api.github.com/users/AsianTechInc/events{/privacy}","received_events_url":"https://api.github.com/users/AsianTechInc/received_events","type":"Organization","site_admin":false},"repo":{"id":85675110,"name":"AT-MVVM-iOS","full_name":"AsianTechInc/AT-MVVM-iOS","owner":{"login":"AsianTechInc","id":12997183,"avatar_url":"https://avatars0.githubusercontent.com/u/12997183?v=3","gravatar_id":"","url":"https://api.github.com/users/AsianTechInc","html_url":"https://github.com/AsianTechInc","followers_url":"https://api.github.com/users/AsianTechInc/followers","following_url":"https://api.github.com/users/AsianTechInc/following{/other_user}","gists_url":"https://api.github.com/users/AsianTechInc/gists{/gist_id}","starred_url":"https://api.github.com/users/AsianTechInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AsianTechInc/subscriptions","organizations_url":"https://api.github.com/users/AsianTechInc/orgs","repos_url":"https://api.github.com/users/AsianTechInc/repos","events_url":"https://api.github.com/users/AsianTechInc/events{/privacy}","received_events_url":"https://api.github.com/users/AsianTechInc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AsianTechInc/AT-MVVM-iOS","description":"Request by Dao Nguyen V. on 21 Mar 2017","fork":false,"url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS","forks_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/forks","keys_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/teams","hooks_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/hooks","issue_events_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/events","assignees_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/tags","blobs_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/languages","stargazers_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/stargazers","contributors_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/contributors","subscribers_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/subscribers","subscription_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/subscription","commits_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/merges","archive_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/downloads","issues_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/labels{/name}","releases_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/releases{/id}","deployments_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/deployments","created_at":"2017-03-21T08:07:51Z","updated_at":"2017-04-11T07:00:48Z","pushed_at":"2017-04-11T07:01:35Z","git_url":"git://github.com/AsianTechInc/AT-MVVM-iOS.git","ssh_url":"git@github.com:AsianTechInc/AT-MVVM-iOS.git","clone_url":"https://github.com/AsianTechInc/AT-MVVM-iOS.git","svn_url":"https://github.com/AsianTechInc/AT-MVVM-iOS","homepage":null,"size":134,"stargazers_count":1,"watchers_count":1,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"AsianTechInc:master","ref":"master","sha":"d11c860e64b0766b0df21415d9fdedea0de448b2","user":{"login":"AsianTechInc","id":12997183,"avatar_url":"https://avatars0.githubusercontent.com/u/12997183?v=3","gravatar_id":"","url":"https://api.github.com/users/AsianTechInc","html_url":"https://github.com/AsianTechInc","followers_url":"https://api.github.com/users/AsianTechInc/followers","following_url":"https://api.github.com/users/AsianTechInc/following{/other_user}","gists_url":"https://api.github.com/users/AsianTechInc/gists{/gist_id}","starred_url":"https://api.github.com/users/AsianTechInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AsianTechInc/subscriptions","organizations_url":"https://api.github.com/users/AsianTechInc/orgs","repos_url":"https://api.github.com/users/AsianTechInc/repos","events_url":"https://api.github.com/users/AsianTechInc/events{/privacy}","received_events_url":"https://api.github.com/users/AsianTechInc/received_events","type":"Organization","site_admin":false},"repo":{"id":85675110,"name":"AT-MVVM-iOS","full_name":"AsianTechInc/AT-MVVM-iOS","owner":{"login":"AsianTechInc","id":12997183,"avatar_url":"https://avatars0.githubusercontent.com/u/12997183?v=3","gravatar_id":"","url":"https://api.github.com/users/AsianTechInc","html_url":"https://github.com/AsianTechInc","followers_url":"https://api.github.com/users/AsianTechInc/followers","following_url":"https://api.github.com/users/AsianTechInc/following{/other_user}","gists_url":"https://api.github.com/users/AsianTechInc/gists{/gist_id}","starred_url":"https://api.github.com/users/AsianTechInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AsianTechInc/subscriptions","organizations_url":"https://api.github.com/users/AsianTechInc/orgs","repos_url":"https://api.github.com/users/AsianTechInc/repos","events_url":"https://api.github.com/users/AsianTechInc/events{/privacy}","received_events_url":"https://api.github.com/users/AsianTechInc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AsianTechInc/AT-MVVM-iOS","description":"Request by Dao Nguyen V. on 21 Mar 2017","fork":false,"url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS","forks_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/forks","keys_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/teams","hooks_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/hooks","issue_events_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/events","assignees_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/tags","blobs_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/languages","stargazers_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/stargazers","contributors_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/contributors","subscribers_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/subscribers","subscription_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/subscription","commits_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/merges","archive_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/downloads","issues_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/labels{/name}","releases_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/releases{/id}","deployments_url":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/deployments","created_at":"2017-03-21T08:07:51Z","updated_at":"2017-04-11T07:00:48Z","pushed_at":"2017-04-11T07:01:35Z","git_url":"git://github.com/AsianTechInc/AT-MVVM-iOS.git","ssh_url":"git@github.com:AsianTechInc/AT-MVVM-iOS.git","clone_url":"https://github.com/AsianTechInc/AT-MVVM-iOS.git","svn_url":"https://github.com/AsianTechInc/AT-MVVM-iOS","homepage":null,"size":134,"stargazers_count":1,"watchers_count":1,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/pulls/4"},"html":{"href":"https://github.com/AsianTechInc/AT-MVVM-iOS/pull/4"},"issue":{"href":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/issues/4"},"comments":{"href":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/AsianTechInc/AT-MVVM-iOS/statuses/c2da3182810bd81048dc5fe69702cdb454f11535"}}}}
{"actor":{"display_login":"at-daonguyen"}}