{"action":"created","comment":{"url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/pulls/comments/75200830","id":75200830,"diff_hunk":"@@ -0,0 +1,30 @@\n+module EVSS\n+\n+  class ClaimsService\n+\n+    def initialize(vaafi_headers={})\n+      # TODO: Get base URI from env\n+      @base_url = 'http://csraciapp6.evss.srarad.com:7003/wss-claims-services-web-3.1/rest'\n+      @headers = vaafi_headers\n+      @default_timeout = 5  # seconds\n+    end\n+\n+    def conn","path":"lib/evss.rb","position":12,"original_position":12,"commit_id":"4966c8a17519b9a4b69ff55e38561a13faa192d9","original_commit_id":"4966c8a17519b9a4b69ff55e38561a13faa192d9","user":{"login":"austin-martinez","id":16657563,"avatar_url":"https://avatars.githubusercontent.com/u/16657563?v=3","gravatar_id":"","url":"https://api.github.com/users/austin-martinez","html_url":"https://github.com/austin-martinez","followers_url":"https://api.github.com/users/austin-martinez/followers","following_url":"https://api.github.com/users/austin-martinez/following{/other_user}","gists_url":"https://api.github.com/users/austin-martinez/gists{/gist_id}","starred_url":"https://api.github.com/users/austin-martinez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austin-martinez/subscriptions","organizations_url":"https://api.github.com/users/austin-martinez/orgs","repos_url":"https://api.github.com/users/austin-martinez/repos","events_url":"https://api.github.com/users/austin-martinez/events{/privacy}","received_events_url":"https://api.github.com/users/austin-martinez/received_events","type":"User","site_admin":false},"body":"I would make this a private method, also probably want to memoize to only keep one connection object per EVSS instance","created_at":"2016-08-17T20:30:44Z","updated_at":"2016-08-17T20:30:44Z","html_url":"https://github.com/department-of-veterans-affairs/benefits-api/pull/3#discussion_r75200830","pull_request_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/pulls/comments/75200830"},"html":{"href":"https://github.com/department-of-veterans-affairs/benefits-api/pull/3#discussion_r75200830"},"pull_request":{"href":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/pulls/3","id":81187358,"html_url":"https://github.com/department-of-veterans-affairs/benefits-api/pull/3","diff_url":"https://github.com/department-of-veterans-affairs/benefits-api/pull/3.diff","patch_url":"https://github.com/department-of-veterans-affairs/benefits-api/pull/3.patch","issue_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/issues/3","number":3,"state":"open","locked":false,"title":"Initial commit for EVSS client code","user":{"login":"carlmjohnson","id":222245,"avatar_url":"https://avatars.githubusercontent.com/u/222245?v=3","gravatar_id":"","url":"https://api.github.com/users/carlmjohnson","html_url":"https://github.com/carlmjohnson","followers_url":"https://api.github.com/users/carlmjohnson/followers","following_url":"https://api.github.com/users/carlmjohnson/following{/other_user}","gists_url":"https://api.github.com/users/carlmjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/carlmjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlmjohnson/subscriptions","organizations_url":"https://api.github.com/users/carlmjohnson/orgs","repos_url":"https://api.github.com/users/carlmjohnson/repos","events_url":"https://api.github.com/users/carlmjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/carlmjohnson/received_events","type":"User","site_admin":false},"body":"If you connect to the CI VPN and run\r\n\r\n```ruby\r\nrequire 'evss'\r\n\r\nuser = {\r\n        'va_eauth_pnidtype': 'SSN',\r\n        'va_eauth_csid': 'DSLogon',\r\n        'va_eauth_firstName': 'Jane',\r\n        'va_eauth_lastName': 'Doe',\r\n        'va_eauth_authenticationauthority': 'eauth',\r\n        'iv-user': 'dslogoneauthuser',\r\n        'va_eauth_emailAddress': 'jane.doe@va.gov',\r\n        'va_eauth_birthdate': '1999-10-09T08:06:12-04:00',\r\n        # 'va_eauth_authorization': '{\"authorizationResponse\":{\"id\":\"123456789\",\"idType\":\"SSN\",\"edi\":1105051936\",\"firstName\":\"JANE\",\"middleName\":\"A\",\"lastName\":\"DOE\",\"gender\":\"FEMALE\",\"birthDate\":939465704000,\"status\":\"VETERAN\"}}',\r\n        'va_eauth_pid': '123456789',\r\n        'va_eauth_issueinstant': '2015-04-17T14:52:48Z',\r\n        'va_eauth_dodedipnid': '1105051936',\r\n        'va_eauth_middleName': 'A',\r\n        'va_eauth_authenticationmethod': 'DSLogon',\r\n        'va_eauth_assurancelevel': '2',\r\n}\r\n\r\nclient = EVSS::ClaimsService.new(user)\r\nclient.claims\r\nclient.create_intent_to_file!\r\n```\r\n\r\nyou should receive good responses. Next step is probably creating something that documents what a user looks like and how it turns into a set of headers, instead of just copying it in.","created_at":"2016-08-12T21:42:46Z","updated_at":"2016-08-17T20:30:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9e29cb304917c5675d5cd7e431ec6368ced84d5","assignee":{"login":"austin-martinez","id":16657563,"avatar_url":"https://avatars.githubusercontent.com/u/16657563?v=3","gravatar_id":"","url":"https://api.github.com/users/austin-martinez","html_url":"https://github.com/austin-martinez","followers_url":"https://api.github.com/users/austin-martinez/followers","following_url":"https://api.github.com/users/austin-martinez/following{/other_user}","gists_url":"https://api.github.com/users/austin-martinez/gists{/gist_id}","starred_url":"https://api.github.com/users/austin-martinez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austin-martinez/subscriptions","organizations_url":"https://api.github.com/users/austin-martinez/orgs","repos_url":"https://api.github.com/users/austin-martinez/repos","events_url":"https://api.github.com/users/austin-martinez/events{/privacy}","received_events_url":"https://api.github.com/users/austin-martinez/received_events","type":"User","site_admin":false},"assignees":[{"login":"austin-martinez","id":16657563,"avatar_url":"https://avatars.githubusercontent.com/u/16657563?v=3","gravatar_id":"","url":"https://api.github.com/users/austin-martinez","html_url":"https://github.com/austin-martinez","followers_url":"https://api.github.com/users/austin-martinez/followers","following_url":"https://api.github.com/users/austin-martinez/following{/other_user}","gists_url":"https://api.github.com/users/austin-martinez/gists{/gist_id}","starred_url":"https://api.github.com/users/austin-martinez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austin-martinez/subscriptions","organizations_url":"https://api.github.com/users/austin-martinez/orgs","repos_url":"https://api.github.com/users/austin-martinez/repos","events_url":"https://api.github.com/users/austin-martinez/events{/privacy}","received_events_url":"https://api.github.com/users/austin-martinez/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/pulls/3/commits","review_comments_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/pulls/3/comments","review_comment_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/issues/3/comments","statuses_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/statuses/4966c8a17519b9a4b69ff55e38561a13faa192d9","head":{"label":"department-of-veterans-affairs:cjohnson/add-client","ref":"cjohnson/add-client","sha":"4966c8a17519b9a4b69ff55e38561a13faa192d9","user":{"login":"department-of-veterans-affairs","id":5421563,"avatar_url":"https://avatars.githubusercontent.com/u/5421563?v=3","gravatar_id":"","url":"https://api.github.com/users/department-of-veterans-affairs","html_url":"https://github.com/department-of-veterans-affairs","followers_url":"https://api.github.com/users/department-of-veterans-affairs/followers","following_url":"https://api.github.com/users/department-of-veterans-affairs/following{/other_user}","gists_url":"https://api.github.com/users/department-of-veterans-affairs/gists{/gist_id}","starred_url":"https://api.github.com/users/department-of-veterans-affairs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/department-of-veterans-affairs/subscriptions","organizations_url":"https://api.github.com/users/department-of-veterans-affairs/orgs","repos_url":"https://api.github.com/users/department-of-veterans-affairs/repos","events_url":"https://api.github.com/users/department-of-veterans-affairs/events{/privacy}","received_events_url":"https://api.github.com/users/department-of-veterans-affairs/received_events","type":"Organization","site_admin":false},"repo":{"id":64869390,"name":"benefits-api","full_name":"department-of-veterans-affairs/benefits-api","owner":{"login":"department-of-veterans-affairs","id":5421563,"avatar_url":"https://avatars.githubusercontent.com/u/5421563?v=3","gravatar_id":"","url":"https://api.github.com/users/department-of-veterans-affairs","html_url":"https://github.com/department-of-veterans-affairs","followers_url":"https://api.github.com/users/department-of-veterans-affairs/followers","following_url":"https://api.github.com/users/department-of-veterans-affairs/following{/other_user}","gists_url":"https://api.github.com/users/department-of-veterans-affairs/gists{/gist_id}","starred_url":"https://api.github.com/users/department-of-veterans-affairs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/department-of-veterans-affairs/subscriptions","organizations_url":"https://api.github.com/users/department-of-veterans-affairs/orgs","repos_url":"https://api.github.com/users/department-of-veterans-affairs/repos","events_url":"https://api.github.com/users/department-of-veterans-affairs/events{/privacy}","received_events_url":"https://api.github.com/users/department-of-veterans-affairs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/department-of-veterans-affairs/benefits-api","description":"repo for the benefits API","fork":false,"url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api","forks_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/forks","keys_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/teams","hooks_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/hooks","issue_events_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/issues/events{/number}","events_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/events","assignees_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/assignees{/user}","branches_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/branches{/branch}","tags_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/tags","blobs_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/statuses/{sha}","languages_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/languages","stargazers_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/stargazers","contributors_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/contributors","subscribers_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/subscribers","subscription_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/subscription","commits_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/contents/{+path}","compare_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/merges","archive_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/downloads","issues_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/issues{/number}","pulls_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/pulls{/number}","milestones_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/milestones{/number}","notifications_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/labels{/name}","releases_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/releases{/id}","deployments_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/deployments","created_at":"2016-08-03T18:25:16Z","updated_at":"2016-08-03T18:28:07Z","pushed_at":"2016-08-17T19:58:47Z","git_url":"git://github.com/department-of-veterans-affairs/benefits-api.git","ssh_url":"git@github.com:department-of-veterans-affairs/benefits-api.git","clone_url":"https://github.com/department-of-veterans-affairs/benefits-api.git","svn_url":"https://github.com/department-of-veterans-affairs/benefits-api","homepage":null,"size":82,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":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":0,"default_branch":"master"}},"base":{"label":"department-of-veterans-affairs:master","ref":"master","sha":"e0ed0205c090368f5163e51269cfdf23b99d479b","user":{"login":"department-of-veterans-affairs","id":5421563,"avatar_url":"https://avatars.githubusercontent.com/u/5421563?v=3","gravatar_id":"","url":"https://api.github.com/users/department-of-veterans-affairs","html_url":"https://github.com/department-of-veterans-affairs","followers_url":"https://api.github.com/users/department-of-veterans-affairs/followers","following_url":"https://api.github.com/users/department-of-veterans-affairs/following{/other_user}","gists_url":"https://api.github.com/users/department-of-veterans-affairs/gists{/gist_id}","starred_url":"https://api.github.com/users/department-of-veterans-affairs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/department-of-veterans-affairs/subscriptions","organizations_url":"https://api.github.com/users/department-of-veterans-affairs/orgs","repos_url":"https://api.github.com/users/department-of-veterans-affairs/repos","events_url":"https://api.github.com/users/department-of-veterans-affairs/events{/privacy}","received_events_url":"https://api.github.com/users/department-of-veterans-affairs/received_events","type":"Organization","site_admin":false},"repo":{"id":64869390,"name":"benefits-api","full_name":"department-of-veterans-affairs/benefits-api","owner":{"login":"department-of-veterans-affairs","id":5421563,"avatar_url":"https://avatars.githubusercontent.com/u/5421563?v=3","gravatar_id":"","url":"https://api.github.com/users/department-of-veterans-affairs","html_url":"https://github.com/department-of-veterans-affairs","followers_url":"https://api.github.com/users/department-of-veterans-affairs/followers","following_url":"https://api.github.com/users/department-of-veterans-affairs/following{/other_user}","gists_url":"https://api.github.com/users/department-of-veterans-affairs/gists{/gist_id}","starred_url":"https://api.github.com/users/department-of-veterans-affairs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/department-of-veterans-affairs/subscriptions","organizations_url":"https://api.github.com/users/department-of-veterans-affairs/orgs","repos_url":"https://api.github.com/users/department-of-veterans-affairs/repos","events_url":"https://api.github.com/users/department-of-veterans-affairs/events{/privacy}","received_events_url":"https://api.github.com/users/department-of-veterans-affairs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/department-of-veterans-affairs/benefits-api","description":"repo for the benefits API","fork":false,"url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api","forks_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/forks","keys_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/teams","hooks_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/hooks","issue_events_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/issues/events{/number}","events_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/events","assignees_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/assignees{/user}","branches_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/branches{/branch}","tags_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/tags","blobs_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/statuses/{sha}","languages_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/languages","stargazers_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/stargazers","contributors_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/contributors","subscribers_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/subscribers","subscription_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/subscription","commits_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/contents/{+path}","compare_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/merges","archive_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/downloads","issues_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/issues{/number}","pulls_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/pulls{/number}","milestones_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/milestones{/number}","notifications_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/labels{/name}","releases_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/releases{/id}","deployments_url":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/deployments","created_at":"2016-08-03T18:25:16Z","updated_at":"2016-08-03T18:28:07Z","pushed_at":"2016-08-17T19:58:47Z","git_url":"git://github.com/department-of-veterans-affairs/benefits-api.git","ssh_url":"git@github.com:department-of-veterans-affairs/benefits-api.git","clone_url":"https://github.com/department-of-veterans-affairs/benefits-api.git","svn_url":"https://github.com/department-of-veterans-affairs/benefits-api","homepage":null,"size":82,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/pulls/3"},"html":{"href":"https://github.com/department-of-veterans-affairs/benefits-api/pull/3"},"issue":{"href":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/issues/3"},"comments":{"href":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/department-of-veterans-affairs/benefits-api/statuses/4966c8a17519b9a4b69ff55e38561a13faa192d9"}}}}
{"actor":{"display_login":"austin-martinez"}}