Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
17 | public function latest() |
||
18 | { |
||
19 | $this->request->checkLoggedIn(); |
||
20 | |||
21 | $data = ["options" => ['allow_state' => true]]; |
||
22 | $request = Request::createRequestData($data); |
||
23 | |||
24 | $getString = UrlHelper::buildRequestString($request); |
||
25 | $response = $this->request->exec(UrlHelper::RESOURCE_GET_LATEST_NEWS."?{$getString}"); |
||
26 | |||
27 | return $this->response->getData($response); |
||
28 | } |
||
29 | } |
||
30 |