src/main/java/com/ngrok/services/Tunnels.java
public CompletionStage<Page<TunnelList>> call() {
            return apiClient.sendRequest(
                NgrokApiClient.HttpMethod.GET,
                "/tunnels",
                Stream.of(
                    new AbstractMap.SimpleEntry<>("before_id", this.beforeId.map(Function.identity())),
                    new AbstractMap.SimpleEntry<>("limit", this.limit.map(Function.identity()))
                ),
                Stream.empty(),
                Optional.of(TunnelList.class)
            ).thenApply(list -> new Page<>(apiClient, list));
        }
/**
         * Initiates the API call asynchronously.
         *
         * @return a {@link CompletionStage} of a {@link Page} of {@link TunnelList}
         */
Initiates the API call asynchronously.
@return a  CompletionStage of a  Page of  TunnelList
Initiates the API call asynchronously . @return a CompletionStage of a Page of TunnelList
public CompletionStage<Page<TunnelList>> call() {
            return apiClient.sendRequest(
                NgrokApiClient.HttpMethod.GET,
                "/tunnels",
                Stream.of(
                    new AbstractMap.SimpleEntry<>("before_id", this.beforeId.map(Function.identity())),
                    new AbstractMap.SimpleEntry<>("limit", this.limit.map(Function.identity()))
                ),
                Stream.empty(),
                Optional.of(TunnelList.class)
            ).thenApply(list -> new Page<>(apiClient, list));
        }
public CompletionStage < Page < TunnelList > > call ( ) { return apiClient . sendRequest ( NgrokApiClient . HttpMethod . GET , "/tunnels" , Stream . of ( new AbstractMap . SimpleEntry < > ( "before_id" , this . beforeId . map ( Function . identity ( ) ) ) , new AbstractMap . SimpleEntry < > ( "limit" , this . limit . map ( Function . identity ( ) ) ) ) , Stream . empty ( ) , Optional . of ( TunnelList . class ) ) . thenApply ( list -> new Page < > ( apiClient , list ) ) ; }
Initiates the API call asynchronously.
Initiates the API call asynchronously .