@@ 109-121 (lines=13) @@ | ||
106 | * @param $password |
|
107 | * @return Response |
|
108 | */ |
|
109 | public static function sendGetWithAuth($uri, array $getParams=[], array $postParams=[], $user, $password) |
|
110 | { |
|
111 | ||
112 | $requestHelper = new RequestHelper(); |
|
113 | $guzzle = new Client(); |
|
114 | $httpClient = new HTTPClient($guzzle,$requestHelper); |
|
115 | $httpHelper = new HttpHelper($httpClient); |
|
116 | $response = $httpHelper->sendGetWithAuth($uri, $getParams, $postParams, $user, $password); |
|
117 | ||
118 | return $response; |
|
119 | ||
120 | ||
121 | } |
|
122 | ||
123 | /** |
|
124 | * @param $uri |
|
@@ 148-157 (lines=10) @@ | ||
145 | * @param $password |
|
146 | * @return Response |
|
147 | */ |
|
148 | public static function sendPostWithAuth($uri, array $getParams=[], array $postParams=[], $user, $password) |
|
149 | { |
|
150 | $requestHelper = new RequestHelper(); |
|
151 | $guzzle = new Client(); |
|
152 | $httpClient = new HTTPClient($guzzle,$requestHelper); |
|
153 | $httpHelper = new HttpHelper($httpClient); |
|
154 | $response = $httpHelper->sendPostWithAuth($uri, $getParams, $postParams, $user, $password); |
|
155 | ||
156 | return $response; |
|
157 | } |
|
158 | ||
159 | /** |
|
160 | * @param $uri |