Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function sendMessage($userId, $text) |
||
18 | { |
||
19 | $this->request->checkLoggedIn(); |
||
20 | $data = array( |
||
21 | "options" => array( |
||
22 | "user_ids" => array($userId), |
||
23 | "emails" => array(), |
||
24 | "text" => $text, |
||
25 | ), |
||
26 | ); |
||
27 | |||
28 | $request = Request::createRequestData($data); |
||
29 | |||
30 | $postString = UrlHelper::buildRequestString($request); |
||
31 | $response = $this->request->exec(UrlHelper::RESOURCE_SEND_MESSAGE, $postString); |
||
32 | |||
33 | return $this->response->checkResponse($response); |
||
34 | } |
||
35 | |||
50 |