Skip to content

Latest commit

 

History

History
70 lines (54 loc) · 1.95 KB

File metadata and controls

70 lines (54 loc) · 1.95 KB

Organizations

(organizations())

Available Operations

listOrganizationsForUser

Lists users organizations.

Example Usage

package hello.world;

import com.airbyte.api.Airbyte;
import com.airbyte.api.models.operations.*;
import com.airbyte.api.models.shared.*;
import com.airbyte.api.models.shared.Security;
import com.airbyte.api.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;

public class Application {

    public static void main(String[] args) throws Exception {
        try {
            Airbyte sdk = Airbyte.builder()
                .security(Security.builder()
                    .basicAuth(SchemeBasicAuth.builder()
                        .password("")
                        .username("")
                        .build())
                    .build())
                .build();

            ListOrganizationsForUserResponse res = sdk.organizations().listOrganizationsForUser()
                .call();

            if (res.organizationsResponse().isPresent()) {
                // handle response
            }
        } catch (com.airbyte.api.models.errors.SDKError e) {
            // handle exception
            throw e;
        } catch (Exception e) {
            // handle exception
            throw e;
        }

    }
}

Response

com.airbyte.api.models.operations.ListOrganizationsForUserResponse

Errors

Error Object Status Code Content Type
models/errors/SDKError 4xx-5xx */*