Skip to content

Latest commit

 

History

History
executable file
·
56 lines (39 loc) · 2.67 KB

README.md

File metadata and controls

executable file
·
56 lines (39 loc) · 2.67 KB

streams

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.Security;

public class Application {
    public static void main(String[] args) {
        try {
            Airbyte sdk = Airbyte.builder()
                .setSecurity(new Security("ipsa") {{
                    bearerAuth = "";
                }})
                .build();

            GetStreamPropertiesRequest req = new GetStreamPropertiesRequest("minima", "veritatis") {{
                ignoreCache = false;
            }};            

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

            if (res.streamPropertiesResponse != null) {
                // handle response
            }
        } catch (Exception e) {
            // handle exception
        }
    }
}

Parameters

Parameter Type Required Description
request com.airbyte.api.models.operations.GetStreamPropertiesRequest ✔️ The request object to use for the request.

Response

com.airbyte.api.models.operations.GetStreamPropertiesResponse