{"action":"created","comment":{"url":"https://api.github.com/repos/advox/training/pulls/comments/125468355","pull_request_review_id":47859739,"id":125468355,"diff_hunk":"@@ -0,0 +1,135 @@\n+<?php\n+\n+class PakerFit_Integration_Model_Integrator\n+{\n+    \n+    /** Soap description */\n+    const SOAP_WSDL = 'http://www.powerbody.co.uk.dev/index.php/api/soap/?wsdl';\n+    const SOAP_USERNAME = 'lukasz.dobrowolski1@thecoded.co.uk';\n+    const SOAP_PASSWORD = 'DEGKc9gq';\n+    \n+    /** @var SoapClient Soap connection to PowerBody system */\n+    protected $_soapClient = null;\n+    \n+    /** @var string Soap session */\n+    protected $_session = null;\n+    \n+    /** @var array Catalog categories */\n+    protected $_categories = [];\n+    \n+    /**\n+     * Constructor\n+     * Creates SOAP connection with user authorization.\n+     */\n+    public function __construct()\n+    {\n+        $this->_soapClient = new SoapClient(self::SOAP_WSDL, [\n+            'cache_wsdl' => WSDL_CACHE_NONE,\n+            'trace'      => 1,\n+        ]);\n+        \n+        $this->_session = $this->_soapClient->login(self::SOAP_USERNAME, self::SOAP_PASSWORD);\n+        \n+    }\n+    \n+    /**\n+     * Destructor","path":"app/code/local/PakerFit/Integration/Model/Integrator.php","position":36,"original_position":36,"commit_id":"aeb2ad517e05d6f7bca2cf2147f024238106acc5","original_commit_id":"aeb2ad517e05d6f7bca2cf2147f024238106acc5","user":{"login":"xmihau","id":8579445,"avatar_url":"https://avatars2.githubusercontent.com/u/8579445?v=3","gravatar_id":"","url":"https://api.github.com/users/xmihau","html_url":"https://github.com/xmihau","followers_url":"https://api.github.com/users/xmihau/followers","following_url":"https://api.github.com/users/xmihau/following{/other_user}","gists_url":"https://api.github.com/users/xmihau/gists{/gist_id}","starred_url":"https://api.github.com/users/xmihau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xmihau/subscriptions","organizations_url":"https://api.github.com/users/xmihau/orgs","repos_url":"https://api.github.com/users/xmihau/repos","events_url":"https://api.github.com/users/xmihau/events{/privacy}","received_events_url":"https://api.github.com/users/xmihau/received_events","type":"User","site_admin":false},"body":"komentarz bez sensu","created_at":"2017-07-04T13:05:30Z","updated_at":"2017-07-04T13:05:30Z","html_url":"https://github.com/advox/training/pull/1#discussion_r125468355","pull_request_url":"https://api.github.com/repos/advox/training/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/advox/training/pulls/comments/125468355"},"html":{"href":"https://github.com/advox/training/pull/1#discussion_r125468355"},"pull_request":{"href":"https://api.github.com/repos/advox/training/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/advox/training/pulls/1","id":128798235,"html_url":"https://github.com/advox/training/pull/1","diff_url":"https://github.com/advox/training/pull/1.diff","patch_url":"https://github.com/advox/training/pull/1.patch","issue_url":"https://api.github.com/repos/advox/training/issues/1","number":1,"state":"open","locked":false,"title":"Train 23","user":{"login":"lukaszdobrowolskithecoded","id":29747088,"avatar_url":"https://avatars1.githubusercontent.com/u/29747088?v=3","gravatar_id":"","url":"https://api.github.com/users/lukaszdobrowolskithecoded","html_url":"https://github.com/lukaszdobrowolskithecoded","followers_url":"https://api.github.com/users/lukaszdobrowolskithecoded/followers","following_url":"https://api.github.com/users/lukaszdobrowolskithecoded/following{/other_user}","gists_url":"https://api.github.com/users/lukaszdobrowolskithecoded/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaszdobrowolskithecoded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaszdobrowolskithecoded/subscriptions","organizations_url":"https://api.github.com/users/lukaszdobrowolskithecoded/orgs","repos_url":"https://api.github.com/users/lukaszdobrowolskithecoded/repos","events_url":"https://api.github.com/users/lukaszdobrowolskithecoded/events{/privacy}","received_events_url":"https://api.github.com/users/lukaszdobrowolskithecoded/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-07-04T13:00:08Z","updated_at":"2017-07-04T13:05:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"17e63974cd54f38c9b919fdae281e03a41d14c7d","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/advox/training/pulls/1/commits","review_comments_url":"https://api.github.com/repos/advox/training/pulls/1/comments","review_comment_url":"https://api.github.com/repos/advox/training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/advox/training/issues/1/comments","statuses_url":"https://api.github.com/repos/advox/training/statuses/aeb2ad517e05d6f7bca2cf2147f024238106acc5","head":{"label":"advox:TRAIN-23","ref":"TRAIN-23","sha":"aeb2ad517e05d6f7bca2cf2147f024238106acc5","user":{"login":"advox","id":1726556,"avatar_url":"https://avatars0.githubusercontent.com/u/1726556?v=3","gravatar_id":"","url":"https://api.github.com/users/advox","html_url":"https://github.com/advox","followers_url":"https://api.github.com/users/advox/followers","following_url":"https://api.github.com/users/advox/following{/other_user}","gists_url":"https://api.github.com/users/advox/gists{/gist_id}","starred_url":"https://api.github.com/users/advox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advox/subscriptions","organizations_url":"https://api.github.com/users/advox/orgs","repos_url":"https://api.github.com/users/advox/repos","events_url":"https://api.github.com/users/advox/events{/privacy}","received_events_url":"https://api.github.com/users/advox/received_events","type":"Organization","site_admin":false},"repo":{"id":96217335,"name":"training","full_name":"advox/training","owner":{"login":"advox","id":1726556,"avatar_url":"https://avatars0.githubusercontent.com/u/1726556?v=3","gravatar_id":"","url":"https://api.github.com/users/advox","html_url":"https://github.com/advox","followers_url":"https://api.github.com/users/advox/followers","following_url":"https://api.github.com/users/advox/following{/other_user}","gists_url":"https://api.github.com/users/advox/gists{/gist_id}","starred_url":"https://api.github.com/users/advox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advox/subscriptions","organizations_url":"https://api.github.com/users/advox/orgs","repos_url":"https://api.github.com/users/advox/repos","events_url":"https://api.github.com/users/advox/events{/privacy}","received_events_url":"https://api.github.com/users/advox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/advox/training","description":null,"fork":false,"url":"https://api.github.com/repos/advox/training","forks_url":"https://api.github.com/repos/advox/training/forks","keys_url":"https://api.github.com/repos/advox/training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/advox/training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/advox/training/teams","hooks_url":"https://api.github.com/repos/advox/training/hooks","issue_events_url":"https://api.github.com/repos/advox/training/issues/events{/number}","events_url":"https://api.github.com/repos/advox/training/events","assignees_url":"https://api.github.com/repos/advox/training/assignees{/user}","branches_url":"https://api.github.com/repos/advox/training/branches{/branch}","tags_url":"https://api.github.com/repos/advox/training/tags","blobs_url":"https://api.github.com/repos/advox/training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/advox/training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/advox/training/git/refs{/sha}","trees_url":"https://api.github.com/repos/advox/training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/advox/training/statuses/{sha}","languages_url":"https://api.github.com/repos/advox/training/languages","stargazers_url":"https://api.github.com/repos/advox/training/stargazers","contributors_url":"https://api.github.com/repos/advox/training/contributors","subscribers_url":"https://api.github.com/repos/advox/training/subscribers","subscription_url":"https://api.github.com/repos/advox/training/subscription","commits_url":"https://api.github.com/repos/advox/training/commits{/sha}","git_commits_url":"https://api.github.com/repos/advox/training/git/commits{/sha}","comments_url":"https://api.github.com/repos/advox/training/comments{/number}","issue_comment_url":"https://api.github.com/repos/advox/training/issues/comments{/number}","contents_url":"https://api.github.com/repos/advox/training/contents/{+path}","compare_url":"https://api.github.com/repos/advox/training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/advox/training/merges","archive_url":"https://api.github.com/repos/advox/training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/advox/training/downloads","issues_url":"https://api.github.com/repos/advox/training/issues{/number}","pulls_url":"https://api.github.com/repos/advox/training/pulls{/number}","milestones_url":"https://api.github.com/repos/advox/training/milestones{/number}","notifications_url":"https://api.github.com/repos/advox/training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/advox/training/labels{/name}","releases_url":"https://api.github.com/repos/advox/training/releases{/id}","deployments_url":"https://api.github.com/repos/advox/training/deployments","created_at":"2017-07-04T12:45:35Z","updated_at":"2017-07-04T12:45:35Z","pushed_at":"2017-07-04T13:00:09Z","git_url":"git://github.com/advox/training.git","ssh_url":"git@github.com:advox/training.git","clone_url":"https://github.com/advox/training.git","svn_url":"https://github.com/advox/training","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"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":0,"default_branch":"master"}},"base":{"label":"advox:master","ref":"master","sha":"37475037863143112a5f66e22aeb2274ffc31994","user":{"login":"advox","id":1726556,"avatar_url":"https://avatars0.githubusercontent.com/u/1726556?v=3","gravatar_id":"","url":"https://api.github.com/users/advox","html_url":"https://github.com/advox","followers_url":"https://api.github.com/users/advox/followers","following_url":"https://api.github.com/users/advox/following{/other_user}","gists_url":"https://api.github.com/users/advox/gists{/gist_id}","starred_url":"https://api.github.com/users/advox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advox/subscriptions","organizations_url":"https://api.github.com/users/advox/orgs","repos_url":"https://api.github.com/users/advox/repos","events_url":"https://api.github.com/users/advox/events{/privacy}","received_events_url":"https://api.github.com/users/advox/received_events","type":"Organization","site_admin":false},"repo":{"id":96217335,"name":"training","full_name":"advox/training","owner":{"login":"advox","id":1726556,"avatar_url":"https://avatars0.githubusercontent.com/u/1726556?v=3","gravatar_id":"","url":"https://api.github.com/users/advox","html_url":"https://github.com/advox","followers_url":"https://api.github.com/users/advox/followers","following_url":"https://api.github.com/users/advox/following{/other_user}","gists_url":"https://api.github.com/users/advox/gists{/gist_id}","starred_url":"https://api.github.com/users/advox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advox/subscriptions","organizations_url":"https://api.github.com/users/advox/orgs","repos_url":"https://api.github.com/users/advox/repos","events_url":"https://api.github.com/users/advox/events{/privacy}","received_events_url":"https://api.github.com/users/advox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/advox/training","description":null,"fork":false,"url":"https://api.github.com/repos/advox/training","forks_url":"https://api.github.com/repos/advox/training/forks","keys_url":"https://api.github.com/repos/advox/training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/advox/training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/advox/training/teams","hooks_url":"https://api.github.com/repos/advox/training/hooks","issue_events_url":"https://api.github.com/repos/advox/training/issues/events{/number}","events_url":"https://api.github.com/repos/advox/training/events","assignees_url":"https://api.github.com/repos/advox/training/assignees{/user}","branches_url":"https://api.github.com/repos/advox/training/branches{/branch}","tags_url":"https://api.github.com/repos/advox/training/tags","blobs_url":"https://api.github.com/repos/advox/training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/advox/training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/advox/training/git/refs{/sha}","trees_url":"https://api.github.com/repos/advox/training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/advox/training/statuses/{sha}","languages_url":"https://api.github.com/repos/advox/training/languages","stargazers_url":"https://api.github.com/repos/advox/training/stargazers","contributors_url":"https://api.github.com/repos/advox/training/contributors","subscribers_url":"https://api.github.com/repos/advox/training/subscribers","subscription_url":"https://api.github.com/repos/advox/training/subscription","commits_url":"https://api.github.com/repos/advox/training/commits{/sha}","git_commits_url":"https://api.github.com/repos/advox/training/git/commits{/sha}","comments_url":"https://api.github.com/repos/advox/training/comments{/number}","issue_comment_url":"https://api.github.com/repos/advox/training/issues/comments{/number}","contents_url":"https://api.github.com/repos/advox/training/contents/{+path}","compare_url":"https://api.github.com/repos/advox/training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/advox/training/merges","archive_url":"https://api.github.com/repos/advox/training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/advox/training/downloads","issues_url":"https://api.github.com/repos/advox/training/issues{/number}","pulls_url":"https://api.github.com/repos/advox/training/pulls{/number}","milestones_url":"https://api.github.com/repos/advox/training/milestones{/number}","notifications_url":"https://api.github.com/repos/advox/training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/advox/training/labels{/name}","releases_url":"https://api.github.com/repos/advox/training/releases{/id}","deployments_url":"https://api.github.com/repos/advox/training/deployments","created_at":"2017-07-04T12:45:35Z","updated_at":"2017-07-04T12:45:35Z","pushed_at":"2017-07-04T13:00:09Z","git_url":"git://github.com/advox/training.git","ssh_url":"git@github.com:advox/training.git","clone_url":"https://github.com/advox/training.git","svn_url":"https://github.com/advox/training","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/advox/training/pulls/1"},"html":{"href":"https://github.com/advox/training/pull/1"},"issue":{"href":"https://api.github.com/repos/advox/training/issues/1"},"comments":{"href":"https://api.github.com/repos/advox/training/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/advox/training/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/advox/training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/advox/training/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/advox/training/statuses/aeb2ad517e05d6f7bca2cf2147f024238106acc5"}}}}
{"actor":{"display_login":"xmihau"}}