Developers will need to create an API Key within your Developer Portal to make API requests. You can use your existing Airbyte account to log in to the Developer Portal. Once you are in the Developer Portal, use the API Keys tab to create or remove API Keys. You can see a walkthrough demo here 🎦
The Developer Portal UI can also be used to help build your integration by showing information about network requests in the Requests tab. API usage information is also available to you in the Usage tab.
(Installation will not work until published to a package manager, please clone locally and run maven install
to try out the artifact locally)
implementation 'com.airbyte.api:sdk:1.0.0'
package hello.world;
import com.airbyte.api.Airbyte;
import com.airbyte.api.models.shared.Security;
import com.airbyte.api.models.operations.CreateConnectionResponse;
import com.airbyte.api.models.shared.ConnectionCreate;
public class Application {
public static void main(String[] args) {
try {
Airbyte sdk = Airbyte.builder()
.setSecurity(new Security() {{
bearerAuth = "Bearer YOUR_BEARER_TOKEN_HERE";
}})
.build();
com.airbyte.api.models.shared.ConnectionCreate req = new ConnectionCreate() {{
destinationId = "unde";
name = "deserunt";
sourceId = "porro";
}}
CreateConnectionResponse res = sdk.connections.createConnection(req);
if (res.connectionId.isPresent()) {
// handle response
}
} catch (Exception e) {
// handle exception
}
createConnection
- Create a connection
createDestination
- Create a destination
cancelJob
- Cancel a running JobcreateJob
- Trigger a sync or reset job of a connectiongetJob
- Get Job status and detailslistJobs
- List Jobs by sync type
createSource
- Create a source