Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function create(array $properties = array()) |
||
24 | { |
||
25 | $response = $this->browser->post( |
||
26 | '/live-streams', |
||
27 | array(), |
||
28 | json_encode( |
||
29 | $properties |
||
30 | ) |
||
31 | ); |
||
32 | if (!$response->isSuccessful()) { |
||
33 | $this->registerLastError($response); |
||
34 | |||
35 | return null; |
||
36 | } |
||
37 | |||
38 | return $this->unmarshal($response); |
||
39 | } |
||
54 |