{"action":"created","comment":{"url":"https://api.github.com/repos/eReolen/ereolen.dk/pulls/comments/69094497","id":69094497,"diff_hunk":"@@ -0,0 +1,50 @@\n+<?php\n+\n+/**\n+ * @file\n+ * Base class for classes communicating with the UNI•Login services.\n+ */\n+\n+/**\n+ * Base class for UNI•Login services.\n+ */\n+class DingUniloginServiceBase {\n+  protected $client;\n+\n+  /**\n+   * Base constructor.\n+   */\n+  public function __construct($user, $pass) {\n+    $this->client = new SoapClient($this::WSDLURL, array('trace' => TRUE));\n+    $this->user = $user;\n+    $this->pass = $pass;\n+  }\n+\n+  /**\n+   * Call service method.\n+   */\n+  public function call($method, $parameters = array()) {\n+    try {\n+      $res = $this->client->{$method}($parameters);\n+      return isset($res->return) ? $res->return : NULL;\n+    }\n+    catch (Exception $e) {\n+      $message = \"Error: \" . $e->getMessage() .\n+               \"\\nRequest: \\n\" . $this->client->__getLastRequest() .\n+               \"\\nResponse: \\n\" . $this->client->__getLastResponse();\n+\n+      throw new RuntimeException($message, $e->getCode(), $e);\n+    }\n+  }\n+\n+  /**\n+   * Call service method with authentication.\n+   */\n+  public function callWithAuth($method, $parameters = array()) {","path":"sites/all/modules/ding_unilogin/lib/DingUniloginServiceBase.class.inc","position":43,"original_position":43,"commit_id":"fb3b518540c5b0c2bed310736cb1a9e68bcef9d0","original_commit_id":"fb3b518540c5b0c2bed310736cb1a9e68bcef9d0","user":{"login":"kasperg","id":73966,"avatar_url":"https://avatars.githubusercontent.com/u/73966?v=3","gravatar_id":"","url":"https://api.github.com/users/kasperg","html_url":"https://github.com/kasperg","followers_url":"https://api.github.com/users/kasperg/followers","following_url":"https://api.github.com/users/kasperg/following{/other_user}","gists_url":"https://api.github.com/users/kasperg/gists{/gist_id}","starred_url":"https://api.github.com/users/kasperg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasperg/subscriptions","organizations_url":"https://api.github.com/users/kasperg/orgs","repos_url":"https://api.github.com/users/kasperg/repos","events_url":"https://api.github.com/users/kasperg/events{/privacy}","received_events_url":"https://api.github.com/users/kasperg/received_events","type":"User","site_admin":false},"body":"Should this method be protected?","created_at":"2016-06-30T08:45:48Z","updated_at":"2016-06-30T08:45:48Z","html_url":"https://github.com/eReolen/ereolen.dk/pull/126#discussion_r69094497","pull_request_url":"https://api.github.com/repos/eReolen/ereolen.dk/pulls/126","_links":{"self":{"href":"https://api.github.com/repos/eReolen/ereolen.dk/pulls/comments/69094497"},"html":{"href":"https://github.com/eReolen/ereolen.dk/pull/126#discussion_r69094497"},"pull_request":{"href":"https://api.github.com/repos/eReolen/ereolen.dk/pulls/126"}}},"pull_request":{"url":"https://api.github.com/repos/eReolen/ereolen.dk/pulls/126","id":75304277,"html_url":"https://github.com/eReolen/ereolen.dk/pull/126","diff_url":"https://github.com/eReolen/ereolen.dk/pull/126.diff","patch_url":"https://github.com/eReolen/ereolen.dk/pull/126.patch","issue_url":"https://api.github.com/repos/eReolen/ereolen.dk/issues/126","number":126,"state":"open","locked":false,"title":"Unilogin breol 2","user":{"login":"xendk","id":229422,"avatar_url":"https://avatars.githubusercontent.com/u/229422?v=3","gravatar_id":"","url":"https://api.github.com/users/xendk","html_url":"https://github.com/xendk","followers_url":"https://api.github.com/users/xendk/followers","following_url":"https://api.github.com/users/xendk/following{/other_user}","gists_url":"https://api.github.com/users/xendk/gists{/gist_id}","starred_url":"https://api.github.com/users/xendk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xendk/subscriptions","organizations_url":"https://api.github.com/users/xendk/orgs","repos_url":"https://api.github.com/users/xendk/repos","events_url":"https://api.github.com/users/xendk/events{/privacy}","received_events_url":"https://api.github.com/users/xendk/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-27T12:41:21Z","updated_at":"2016-06-30T08:45:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a0ea6dcb41edb165b9863483cc35997c4976f96","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/eReolen/ereolen.dk/pulls/126/commits","review_comments_url":"https://api.github.com/repos/eReolen/ereolen.dk/pulls/126/comments","review_comment_url":"https://api.github.com/repos/eReolen/ereolen.dk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eReolen/ereolen.dk/issues/126/comments","statuses_url":"https://api.github.com/repos/eReolen/ereolen.dk/statuses/fb3b518540c5b0c2bed310736cb1a9e68bcef9d0","head":{"label":"eReolen:unilogin-breol-2","ref":"unilogin-breol-2","sha":"fb3b518540c5b0c2bed310736cb1a9e68bcef9d0","user":{"login":"eReolen","id":9528879,"avatar_url":"https://avatars.githubusercontent.com/u/9528879?v=3","gravatar_id":"","url":"https://api.github.com/users/eReolen","html_url":"https://github.com/eReolen","followers_url":"https://api.github.com/users/eReolen/followers","following_url":"https://api.github.com/users/eReolen/following{/other_user}","gists_url":"https://api.github.com/users/eReolen/gists{/gist_id}","starred_url":"https://api.github.com/users/eReolen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eReolen/subscriptions","organizations_url":"https://api.github.com/users/eReolen/orgs","repos_url":"https://api.github.com/users/eReolen/repos","events_url":"https://api.github.com/users/eReolen/events{/privacy}","received_events_url":"https://api.github.com/users/eReolen/received_events","type":"Organization","site_admin":false},"repo":{"id":26113426,"name":"ereolen.dk","full_name":"eReolen/ereolen.dk","owner":{"login":"eReolen","id":9528879,"avatar_url":"https://avatars.githubusercontent.com/u/9528879?v=3","gravatar_id":"","url":"https://api.github.com/users/eReolen","html_url":"https://github.com/eReolen","followers_url":"https://api.github.com/users/eReolen/followers","following_url":"https://api.github.com/users/eReolen/following{/other_user}","gists_url":"https://api.github.com/users/eReolen/gists{/gist_id}","starred_url":"https://api.github.com/users/eReolen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eReolen/subscriptions","organizations_url":"https://api.github.com/users/eReolen/orgs","repos_url":"https://api.github.com/users/eReolen/repos","events_url":"https://api.github.com/users/eReolen/events{/privacy}","received_events_url":"https://api.github.com/users/eReolen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eReolen/ereolen.dk","description":"Ereolen.dk anno 2015 based on DDB CMS","fork":false,"url":"https://api.github.com/repos/eReolen/ereolen.dk","forks_url":"https://api.github.com/repos/eReolen/ereolen.dk/forks","keys_url":"https://api.github.com/repos/eReolen/ereolen.dk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eReolen/ereolen.dk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eReolen/ereolen.dk/teams","hooks_url":"https://api.github.com/repos/eReolen/ereolen.dk/hooks","issue_events_url":"https://api.github.com/repos/eReolen/ereolen.dk/issues/events{/number}","events_url":"https://api.github.com/repos/eReolen/ereolen.dk/events","assignees_url":"https://api.github.com/repos/eReolen/ereolen.dk/assignees{/user}","branches_url":"https://api.github.com/repos/eReolen/ereolen.dk/branches{/branch}","tags_url":"https://api.github.com/repos/eReolen/ereolen.dk/tags","blobs_url":"https://api.github.com/repos/eReolen/ereolen.dk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eReolen/ereolen.dk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eReolen/ereolen.dk/git/refs{/sha}","trees_url":"https://api.github.com/repos/eReolen/ereolen.dk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eReolen/ereolen.dk/statuses/{sha}","languages_url":"https://api.github.com/repos/eReolen/ereolen.dk/languages","stargazers_url":"https://api.github.com/repos/eReolen/ereolen.dk/stargazers","contributors_url":"https://api.github.com/repos/eReolen/ereolen.dk/contributors","subscribers_url":"https://api.github.com/repos/eReolen/ereolen.dk/subscribers","subscription_url":"https://api.github.com/repos/eReolen/ereolen.dk/subscription","commits_url":"https://api.github.com/repos/eReolen/ereolen.dk/commits{/sha}","git_commits_url":"https://api.github.com/repos/eReolen/ereolen.dk/git/commits{/sha}","comments_url":"https://api.github.com/repos/eReolen/ereolen.dk/comments{/number}","issue_comment_url":"https://api.github.com/repos/eReolen/ereolen.dk/issues/comments{/number}","contents_url":"https://api.github.com/repos/eReolen/ereolen.dk/contents/{+path}","compare_url":"https://api.github.com/repos/eReolen/ereolen.dk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eReolen/ereolen.dk/merges","archive_url":"https://api.github.com/repos/eReolen/ereolen.dk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eReolen/ereolen.dk/downloads","issues_url":"https://api.github.com/repos/eReolen/ereolen.dk/issues{/number}","pulls_url":"https://api.github.com/repos/eReolen/ereolen.dk/pulls{/number}","milestones_url":"https://api.github.com/repos/eReolen/ereolen.dk/milestones{/number}","notifications_url":"https://api.github.com/repos/eReolen/ereolen.dk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eReolen/ereolen.dk/labels{/name}","releases_url":"https://api.github.com/repos/eReolen/ereolen.dk/releases{/id}","deployments_url":"https://api.github.com/repos/eReolen/ereolen.dk/deployments","created_at":"2014-11-03T10:15:07Z","updated_at":"2016-01-11T20:09:52Z","pushed_at":"2016-06-30T08:12:45Z","git_url":"git://github.com/eReolen/ereolen.dk.git","ssh_url":"git@github.com:eReolen/ereolen.dk.git","clone_url":"https://github.com/eReolen/ereolen.dk.git","svn_url":"https://github.com/eReolen/ereolen.dk","homepage":null,"size":68198,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"develop"}},"base":{"label":"eReolen:develop","ref":"develop","sha":"261e111c326fe8a6df9c700ef2b092a3b7215494","user":{"login":"eReolen","id":9528879,"avatar_url":"https://avatars.githubusercontent.com/u/9528879?v=3","gravatar_id":"","url":"https://api.github.com/users/eReolen","html_url":"https://github.com/eReolen","followers_url":"https://api.github.com/users/eReolen/followers","following_url":"https://api.github.com/users/eReolen/following{/other_user}","gists_url":"https://api.github.com/users/eReolen/gists{/gist_id}","starred_url":"https://api.github.com/users/eReolen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eReolen/subscriptions","organizations_url":"https://api.github.com/users/eReolen/orgs","repos_url":"https://api.github.com/users/eReolen/repos","events_url":"https://api.github.com/users/eReolen/events{/privacy}","received_events_url":"https://api.github.com/users/eReolen/received_events","type":"Organization","site_admin":false},"repo":{"id":26113426,"name":"ereolen.dk","full_name":"eReolen/ereolen.dk","owner":{"login":"eReolen","id":9528879,"avatar_url":"https://avatars.githubusercontent.com/u/9528879?v=3","gravatar_id":"","url":"https://api.github.com/users/eReolen","html_url":"https://github.com/eReolen","followers_url":"https://api.github.com/users/eReolen/followers","following_url":"https://api.github.com/users/eReolen/following{/other_user}","gists_url":"https://api.github.com/users/eReolen/gists{/gist_id}","starred_url":"https://api.github.com/users/eReolen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eReolen/subscriptions","organizations_url":"https://api.github.com/users/eReolen/orgs","repos_url":"https://api.github.com/users/eReolen/repos","events_url":"https://api.github.com/users/eReolen/events{/privacy}","received_events_url":"https://api.github.com/users/eReolen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eReolen/ereolen.dk","description":"Ereolen.dk anno 2015 based on DDB CMS","fork":false,"url":"https://api.github.com/repos/eReolen/ereolen.dk","forks_url":"https://api.github.com/repos/eReolen/ereolen.dk/forks","keys_url":"https://api.github.com/repos/eReolen/ereolen.dk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eReolen/ereolen.dk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eReolen/ereolen.dk/teams","hooks_url":"https://api.github.com/repos/eReolen/ereolen.dk/hooks","issue_events_url":"https://api.github.com/repos/eReolen/ereolen.dk/issues/events{/number}","events_url":"https://api.github.com/repos/eReolen/ereolen.dk/events","assignees_url":"https://api.github.com/repos/eReolen/ereolen.dk/assignees{/user}","branches_url":"https://api.github.com/repos/eReolen/ereolen.dk/branches{/branch}","tags_url":"https://api.github.com/repos/eReolen/ereolen.dk/tags","blobs_url":"https://api.github.com/repos/eReolen/ereolen.dk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eReolen/ereolen.dk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eReolen/ereolen.dk/git/refs{/sha}","trees_url":"https://api.github.com/repos/eReolen/ereolen.dk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eReolen/ereolen.dk/statuses/{sha}","languages_url":"https://api.github.com/repos/eReolen/ereolen.dk/languages","stargazers_url":"https://api.github.com/repos/eReolen/ereolen.dk/stargazers","contributors_url":"https://api.github.com/repos/eReolen/ereolen.dk/contributors","subscribers_url":"https://api.github.com/repos/eReolen/ereolen.dk/subscribers","subscription_url":"https://api.github.com/repos/eReolen/ereolen.dk/subscription","commits_url":"https://api.github.com/repos/eReolen/ereolen.dk/commits{/sha}","git_commits_url":"https://api.github.com/repos/eReolen/ereolen.dk/git/commits{/sha}","comments_url":"https://api.github.com/repos/eReolen/ereolen.dk/comments{/number}","issue_comment_url":"https://api.github.com/repos/eReolen/ereolen.dk/issues/comments{/number}","contents_url":"https://api.github.com/repos/eReolen/ereolen.dk/contents/{+path}","compare_url":"https://api.github.com/repos/eReolen/ereolen.dk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eReolen/ereolen.dk/merges","archive_url":"https://api.github.com/repos/eReolen/ereolen.dk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eReolen/ereolen.dk/downloads","issues_url":"https://api.github.com/repos/eReolen/ereolen.dk/issues{/number}","pulls_url":"https://api.github.com/repos/eReolen/ereolen.dk/pulls{/number}","milestones_url":"https://api.github.com/repos/eReolen/ereolen.dk/milestones{/number}","notifications_url":"https://api.github.com/repos/eReolen/ereolen.dk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eReolen/ereolen.dk/labels{/name}","releases_url":"https://api.github.com/repos/eReolen/ereolen.dk/releases{/id}","deployments_url":"https://api.github.com/repos/eReolen/ereolen.dk/deployments","created_at":"2014-11-03T10:15:07Z","updated_at":"2016-01-11T20:09:52Z","pushed_at":"2016-06-30T08:12:45Z","git_url":"git://github.com/eReolen/ereolen.dk.git","ssh_url":"git@github.com:eReolen/ereolen.dk.git","clone_url":"https://github.com/eReolen/ereolen.dk.git","svn_url":"https://github.com/eReolen/ereolen.dk","homepage":null,"size":68198,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/eReolen/ereolen.dk/pulls/126"},"html":{"href":"https://github.com/eReolen/ereolen.dk/pull/126"},"issue":{"href":"https://api.github.com/repos/eReolen/ereolen.dk/issues/126"},"comments":{"href":"https://api.github.com/repos/eReolen/ereolen.dk/issues/126/comments"},"review_comments":{"href":"https://api.github.com/repos/eReolen/ereolen.dk/pulls/126/comments"},"review_comment":{"href":"https://api.github.com/repos/eReolen/ereolen.dk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eReolen/ereolen.dk/pulls/126/commits"},"statuses":{"href":"https://api.github.com/repos/eReolen/ereolen.dk/statuses/fb3b518540c5b0c2bed310736cb1a9e68bcef9d0"}}}}
{"actor":{"display_login":"kasperg"}}