| 1 | <?php |
||
| 12 | class PiwikGuzzleClient implements PiwikClient |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var ClientInterface |
||
| 16 | */ |
||
| 17 | private $guzzleClient; |
||
| 18 | |||
| 19 | private $method = 'post'; |
||
| 20 | |||
| 21 | public function __construct(ClientInterface $guzzleClient) |
||
| 25 | |||
| 26 | public function setRequestMethod($method) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $url base piwik api url |
||
| 33 | * @param array $params api parameters |
||
| 34 | * @return ResponseInterface |
||
| 35 | */ |
||
| 36 | public function call($url, array $params = []) |
||
| 40 | } |
||
| 41 |