public function list(int $offset = 0, int $limit = self::MAX_ITEMS_PER_REQUEST, array $filters = [], array $fields = []): array
    {
        /** @var SmsActivity[] $activities */
        $activities = [];
        $response = $this->client->get($this->prepareUrlForKey('list-sms'), array_merge($filters, [
            '_skip' => $offset,
            '_limit' => $limit,
            '_fields' => $fields,
        ]));

        $responseData = $response->getDecodedBody();

        foreach ($responseData['data'] as $activity) {
            $activities[] = new SmsActivity($activity);
        }

        return $activities;
    }
public function list(int $offset = 0, int $limit = self::MAX_ITEMS_PER_REQUEST, array $filters = [], array $fields = []): array
    {
        /** @var SmsActivity[] $activities */
        $activities = [];
        $response = $this->client->get($this->prepareUrlForKey('list-sms'), array_merge($filters, [
            '_skip' => $offset,
            '_limit' => $limit,
            '_fields' => $fields,
        ]));

        $responseData = $response->getDecodedBody();

        foreach ($responseData['data'] as $activity) {
            $activities[] = new SmsActivity($activity);
        }

        return $activities;
    }
public function list ( int $ offset = 0 , int $ limit = self :: MAX_ITEMS_PER_REQUEST , array $ filters = [ ] , array $ fields = [ ] ) : array { /** @var SmsActivity[] $activities */ $ activities = [ ] ; $ response = $ this -> client -> get ( $ this -> prepareUrlForKey ( 'list-sms' ) , array_merge ( $ filters , [ '_skip' => $ offset , '_limit' => $ limit , '_fields' => $ fields , ] ) ) ; $ responseData = $ response -> getDecodedBody ( ) ; foreach ( $ responseData [ 'data' ] as $ activity ) { $ activities [ ] = new SmsActivity ( $ activity ) ; } return $ activities ; }
Gets up to the specified number of SMS activities that match the given
criteria.

@param int      $offset  The offset from which start getting the items
@param int      $limit   The maximum number of items to get
@param array    $filters A set of criteria to filter the items by
@param string[] $fields  The subset of fields to get (defaults to all)

@return SmsActivity[]
Gets up to the specified number of SMS activities that match the given criteria .