Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 2.65 KB

README.md

File metadata and controls

68 lines (48 loc) · 2.65 KB

Streams

(streams())

Overview

Available Operations

getStreamProperties

Get stream properties

Example Usage

package hello.world;

import com.airbyte.api.Airbyte;
import com.airbyte.api.models.operations.GetStreamPropertiesRequest;
import com.airbyte.api.models.operations.GetStreamPropertiesResponse;
import com.airbyte.api.models.shared.SchemeBasicAuth;
import com.airbyte.api.models.shared.Security;
import java.lang.Exception;

public class Application {

    public static void main(String[] args) throws Exception {

        Airbyte sdk = Airbyte.builder()
                .security(Security.builder()
                    .basicAuth(SchemeBasicAuth.builder()
                        .password("")
                        .username("")
                        .build())
                    .build())
            .build();

        GetStreamPropertiesRequest req = GetStreamPropertiesRequest.builder()
                .sourceId("<value>")
                .build();

        GetStreamPropertiesResponse res = sdk.streams().getStreamProperties()
                .request(req)
                .call();

        if (res.streamPropertiesResponse().isPresent()) {
            // handle response
        }
    }
}

Parameters

Parameter Type Required Description
request GetStreamPropertiesRequest ✔️ The request object to use for the request.

Response

GetStreamPropertiesResponse

Errors

Error Type Status Code Content Type
models/errors/SDKError 4XX, 5XX */*