1: <?php
2:
3: namespace SMSApi\Api\Action\User;
4:
5: use SMSApi\Api\Action\AbstractAction;
6: use SMSApi\Proxy\Uri;
7:
8: 9: 10: 11: 12: 13: 14:
15: class GetPoints extends AbstractAction {
16:
17: 18: 19: 20:
21: protected function response( $data ) {
22:
23: return new \SMSApi\Api\Response\PointsResponse( $data );
24: }
25:
26: 27: 28:
29: public function uri() {
30:
31: $query = "";
32:
33: $query .= $this->paramsLoginToQuery();
34:
35: $query .= $this->paramsOther();
36:
37: $query .= "&credits=1";
38:
39: return new Uri( $this->proxy->getProtocol(), $this->proxy->getHost(), $this->proxy->getPort(), "/api/user.do", $query );
40: }
41:
42: }
43:
44: