src/main/java/com/ngrok/services/EventDestinations.java
public CompletionStage<EventDestination> call() {
            return apiClient.sendRequest(
                NgrokApiClient.HttpMethod.POST,
                "/event_destinations",
                Stream.empty(),
                Stream.of(
                    new AbstractMap.SimpleEntry<>("metadata", Optional.of(this.metadata)),
                    new AbstractMap.SimpleEntry<>("description", Optional.of(this.description)),
                    new AbstractMap.SimpleEntry<>("format", Optional.of(this.format)),
                    new AbstractMap.SimpleEntry<>("target", Optional.of(this.target))
                ),
                Optional.of(EventDestination.class)
            );
        }
/**
         * Initiates the API call asynchronously.
         *
         * @return a {@link CompletionStage} of {@link EventDestination}
         */
Initiates the API call asynchronously.
Initiates the API call asynchronously .
public CompletionStage<EventDestination> call() {
            return apiClient.sendRequest(
                NgrokApiClient.HttpMethod.POST,
                "/event_destinations",
                Stream.empty(),
                Stream.of(
                    new AbstractMap.SimpleEntry<>("metadata", Optional.of(this.metadata)),
                    new AbstractMap.SimpleEntry<>("description", Optional.of(this.description)),
                    new AbstractMap.SimpleEntry<>("format", Optional.of(this.format)),
                    new AbstractMap.SimpleEntry<>("target", Optional.of(this.target))
                ),
                Optional.of(EventDestination.class)
            );
        }
public CompletionStage < EventDestination > call ( ) { return apiClient . sendRequest ( NgrokApiClient . HttpMethod . POST , "/event_destinations" , Stream . empty ( ) , Stream . of ( new AbstractMap . SimpleEntry < > ( "metadata" , Optional . of ( this . metadata ) ) , new AbstractMap . SimpleEntry < > ( "description" , Optional . of ( this . description ) ) , new AbstractMap . SimpleEntry < > ( "format" , Optional . of ( this . format ) ) , new AbstractMap . SimpleEntry < > ( "target" , Optional . of ( this . target ) ) ) , Optional . of ( EventDestination . class ) ) ; }
Initiates the API call asynchronously.
Initiates the API call asynchronously .