| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 60 | public function Request($method, $url, $params){ |
||
| 61 | $params = array_merge($this->params, $params); |
||
| 62 | $options = array( |
||
| 63 | 'form-params'=>$params, |
||
| 64 | 'headers'=>[ |
||
| 65 | 'Content-Type'=>'application/x-www-form-urlencoded', |
||
| 66 | ] |
||
| 67 | ); |
||
| 68 | |||
| 69 | try { |
||
| 70 | return json_decode($this->client->request($method, $url, $options),true); |
||
|
|
|||
| 71 | } catch (GuzzleException $e) { |
||
| 72 | //throw $e->getMessage(); |
||
| 77 |