Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function apiCall($call, $query, $service) |
||
17 | { |
||
18 | $config = include(realpath(dirname(__FILE__).'/../config/config.php')); |
||
19 | |||
20 | $this->user = $config->user; |
||
21 | $this->pass = $config->pass; |
||
22 | $this->client = $config->client; |
||
23 | $this->wsshead = $this->getWSSHeader(); |
||
24 | |||
25 | $client = new \SoapClient($service); |
||
26 | $client->__setSoapHeaders($this->wsshead); |
||
27 | $response = $client->$call($query); |
||
28 | return $response; |
||
29 | } |
||
46 |