{"action":"created","comment":{"url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/pulls/comments/66113201","id":66113201,"diff_hunk":"@@ -0,0 +1,20 @@\n+using System;\n+using System.Text;\n+using RestSharp;\n+\n+namespace CoverMyDotNet.Requests\n+{\n+\tpublic class GetRequestPage : RestRequest\n+\t{\n+\t\tpublic GetRequestPage(string apiId, string requestId, string tokenId, string resource = \"\")\n+\t\t{\n+\t\t\tthis.Method = Method.GET;\n+\t\t\tthis.Resource = string.IsNullOrEmpty(resource) ? \n+\t\t\t\t\t\t\t\tstring.Format(\"request-pages/{0}\", requestId) : resource;\n+\t\t\tthis.RootElement = \"request_page\";\n+\t\t\tthis.AddQueryParameter(\"v\", \"1\");\n+\t\t\tthis.AddParameter(\"Accept\", \"application/typed+json\", ParameterType.HttpHeader);\n+\t\t\tthis.AddParameter(\"Authorization\", string.Format(\"Bearer {0}+{1}\", apiId, tokenId), ParameterType.HttpHeader);\t\t\t","path":"CoverMyDotNet/Requests/GetRequestPage.cs","position":17,"original_position":17,"commit_id":"6b2493a35ccc0a7dbcb56b6bb3493ebcb25891f3","original_commit_id":"6b2493a35ccc0a7dbcb56b6bb3493ebcb25891f3","user":{"login":"crobject","id":8495764,"avatar_url":"https://avatars.githubusercontent.com/u/8495764?v=3","gravatar_id":"","url":"https://api.github.com/users/crobject","html_url":"https://github.com/crobject","followers_url":"https://api.github.com/users/crobject/followers","following_url":"https://api.github.com/users/crobject/following{/other_user}","gists_url":"https://api.github.com/users/crobject/gists{/gist_id}","starred_url":"https://api.github.com/users/crobject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crobject/subscriptions","organizations_url":"https://api.github.com/users/crobject/orgs","repos_url":"https://api.github.com/users/crobject/repos","events_url":"https://api.github.com/users/crobject/events{/privacy}","received_events_url":"https://api.github.com/users/crobject/received_events","type":"User","site_admin":false},"body":"The auth seems to vary on different endpoints. Only some take bearer with api key and token, others take just bearer with just the api key, and some take basic auth. I am not sure how useful making a base class would be if we were just going to be using it for a few cases.","created_at":"2016-06-07T17:16:14Z","updated_at":"2016-06-07T17:16:14Z","html_url":"https://github.com/covermymeds/CoverMyDotNet/pull/7#discussion_r66113201","pull_request_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/covermymeds/CoverMyDotNet/pulls/comments/66113201"},"html":{"href":"https://github.com/covermymeds/CoverMyDotNet/pull/7#discussion_r66113201"},"pull_request":{"href":"https://api.github.com/repos/covermymeds/CoverMyDotNet/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/pulls/7","id":72511862,"html_url":"https://github.com/covermymeds/CoverMyDotNet/pull/7","diff_url":"https://github.com/covermymeds/CoverMyDotNet/pull/7.diff","patch_url":"https://github.com/covermymeds/CoverMyDotNet/pull/7.patch","issue_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/issues/7","number":7,"state":"open","locked":false,"title":"Error handling","user":{"login":"crobject","id":8495764,"avatar_url":"https://avatars.githubusercontent.com/u/8495764?v=3","gravatar_id":"","url":"https://api.github.com/users/crobject","html_url":"https://github.com/crobject","followers_url":"https://api.github.com/users/crobject/followers","following_url":"https://api.github.com/users/crobject/following{/other_user}","gists_url":"https://api.github.com/users/crobject/gists{/gist_id}","starred_url":"https://api.github.com/users/crobject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crobject/subscriptions","organizations_url":"https://api.github.com/users/crobject/orgs","repos_url":"https://api.github.com/users/crobject/repos","events_url":"https://api.github.com/users/crobject/events{/privacy}","received_events_url":"https://api.github.com/users/crobject/received_events","type":"User","site_admin":false},"body":"Adds error handling for every request that is sent with rest client. It will throw an exception for each error that is returned by the api. The exception will contains information about the error in the `Data` field","created_at":"2016-06-03T14:02:58Z","updated_at":"2016-06-07T17:16:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0724998f4e1ac1f0d0119d18f38b4462df9d8c84","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/pulls/7/commits","review_comments_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/pulls/7/comments","review_comment_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/issues/7/comments","statuses_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/statuses/6b2493a35ccc0a7dbcb56b6bb3493ebcb25891f3","head":{"label":"covermymeds:error-handling","ref":"error-handling","sha":"6b2493a35ccc0a7dbcb56b6bb3493ebcb25891f3","user":{"login":"covermymeds","id":2488375,"avatar_url":"https://avatars.githubusercontent.com/u/2488375?v=3","gravatar_id":"","url":"https://api.github.com/users/covermymeds","html_url":"https://github.com/covermymeds","followers_url":"https://api.github.com/users/covermymeds/followers","following_url":"https://api.github.com/users/covermymeds/following{/other_user}","gists_url":"https://api.github.com/users/covermymeds/gists{/gist_id}","starred_url":"https://api.github.com/users/covermymeds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/covermymeds/subscriptions","organizations_url":"https://api.github.com/users/covermymeds/orgs","repos_url":"https://api.github.com/users/covermymeds/repos","events_url":"https://api.github.com/users/covermymeds/events{/privacy}","received_events_url":"https://api.github.com/users/covermymeds/received_events","type":"Organization","site_admin":false},"repo":{"id":59590102,"name":"CoverMyDotNet","full_name":"covermymeds/CoverMyDotNet","owner":{"login":"covermymeds","id":2488375,"avatar_url":"https://avatars.githubusercontent.com/u/2488375?v=3","gravatar_id":"","url":"https://api.github.com/users/covermymeds","html_url":"https://github.com/covermymeds","followers_url":"https://api.github.com/users/covermymeds/followers","following_url":"https://api.github.com/users/covermymeds/following{/other_user}","gists_url":"https://api.github.com/users/covermymeds/gists{/gist_id}","starred_url":"https://api.github.com/users/covermymeds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/covermymeds/subscriptions","organizations_url":"https://api.github.com/users/covermymeds/orgs","repos_url":"https://api.github.com/users/covermymeds/repos","events_url":"https://api.github.com/users/covermymeds/events{/privacy}","received_events_url":"https://api.github.com/users/covermymeds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/covermymeds/CoverMyDotNet","description":"","fork":false,"url":"https://api.github.com/repos/covermymeds/CoverMyDotNet","forks_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/forks","keys_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/teams","hooks_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/hooks","issue_events_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/issues/events{/number}","events_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/events","assignees_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/assignees{/user}","branches_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/branches{/branch}","tags_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/tags","blobs_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/git/refs{/sha}","trees_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/statuses/{sha}","languages_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/languages","stargazers_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/stargazers","contributors_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/contributors","subscribers_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/subscribers","subscription_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/subscription","commits_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/commits{/sha}","git_commits_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/git/commits{/sha}","comments_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/comments{/number}","issue_comment_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/issues/comments{/number}","contents_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/contents/{+path}","compare_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/merges","archive_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/downloads","issues_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/issues{/number}","pulls_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/pulls{/number}","milestones_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/milestones{/number}","notifications_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/labels{/name}","releases_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/releases{/id}","deployments_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/deployments","created_at":"2016-05-24T16:31:13Z","updated_at":"2016-06-02T15:34:22Z","pushed_at":"2016-06-06T13:52:18Z","git_url":"git://github.com/covermymeds/CoverMyDotNet.git","ssh_url":"git@github.com:covermymeds/CoverMyDotNet.git","clone_url":"https://github.com/covermymeds/CoverMyDotNet.git","svn_url":"https://github.com/covermymeds/CoverMyDotNet","homepage":null,"size":334,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"covermymeds:master","ref":"master","sha":"0b0e9f382ca248f62a45d3edc51fc1414b778f2a","user":{"login":"covermymeds","id":2488375,"avatar_url":"https://avatars.githubusercontent.com/u/2488375?v=3","gravatar_id":"","url":"https://api.github.com/users/covermymeds","html_url":"https://github.com/covermymeds","followers_url":"https://api.github.com/users/covermymeds/followers","following_url":"https://api.github.com/users/covermymeds/following{/other_user}","gists_url":"https://api.github.com/users/covermymeds/gists{/gist_id}","starred_url":"https://api.github.com/users/covermymeds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/covermymeds/subscriptions","organizations_url":"https://api.github.com/users/covermymeds/orgs","repos_url":"https://api.github.com/users/covermymeds/repos","events_url":"https://api.github.com/users/covermymeds/events{/privacy}","received_events_url":"https://api.github.com/users/covermymeds/received_events","type":"Organization","site_admin":false},"repo":{"id":59590102,"name":"CoverMyDotNet","full_name":"covermymeds/CoverMyDotNet","owner":{"login":"covermymeds","id":2488375,"avatar_url":"https://avatars.githubusercontent.com/u/2488375?v=3","gravatar_id":"","url":"https://api.github.com/users/covermymeds","html_url":"https://github.com/covermymeds","followers_url":"https://api.github.com/users/covermymeds/followers","following_url":"https://api.github.com/users/covermymeds/following{/other_user}","gists_url":"https://api.github.com/users/covermymeds/gists{/gist_id}","starred_url":"https://api.github.com/users/covermymeds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/covermymeds/subscriptions","organizations_url":"https://api.github.com/users/covermymeds/orgs","repos_url":"https://api.github.com/users/covermymeds/repos","events_url":"https://api.github.com/users/covermymeds/events{/privacy}","received_events_url":"https://api.github.com/users/covermymeds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/covermymeds/CoverMyDotNet","description":"","fork":false,"url":"https://api.github.com/repos/covermymeds/CoverMyDotNet","forks_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/forks","keys_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/teams","hooks_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/hooks","issue_events_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/issues/events{/number}","events_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/events","assignees_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/assignees{/user}","branches_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/branches{/branch}","tags_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/tags","blobs_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/git/refs{/sha}","trees_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/statuses/{sha}","languages_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/languages","stargazers_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/stargazers","contributors_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/contributors","subscribers_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/subscribers","subscription_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/subscription","commits_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/commits{/sha}","git_commits_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/git/commits{/sha}","comments_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/comments{/number}","issue_comment_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/issues/comments{/number}","contents_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/contents/{+path}","compare_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/merges","archive_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/downloads","issues_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/issues{/number}","pulls_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/pulls{/number}","milestones_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/milestones{/number}","notifications_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/labels{/name}","releases_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/releases{/id}","deployments_url":"https://api.github.com/repos/covermymeds/CoverMyDotNet/deployments","created_at":"2016-05-24T16:31:13Z","updated_at":"2016-06-02T15:34:22Z","pushed_at":"2016-06-06T13:52:18Z","git_url":"git://github.com/covermymeds/CoverMyDotNet.git","ssh_url":"git@github.com:covermymeds/CoverMyDotNet.git","clone_url":"https://github.com/covermymeds/CoverMyDotNet.git","svn_url":"https://github.com/covermymeds/CoverMyDotNet","homepage":null,"size":334,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/covermymeds/CoverMyDotNet/pulls/7"},"html":{"href":"https://github.com/covermymeds/CoverMyDotNet/pull/7"},"issue":{"href":"https://api.github.com/repos/covermymeds/CoverMyDotNet/issues/7"},"comments":{"href":"https://api.github.com/repos/covermymeds/CoverMyDotNet/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/covermymeds/CoverMyDotNet/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/covermymeds/CoverMyDotNet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/covermymeds/CoverMyDotNet/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/covermymeds/CoverMyDotNet/statuses/6b2493a35ccc0a7dbcb56b6bb3493ebcb25891f3"}}}}
{"actor":{"display_login":"crobject"}}