JDBC Driver for Trello

Build 20.0.7654

Establishing a Connection

Creating a JDBC Data Source

You can create a JDBC data source to connect from your Java application. Creating a JDBC data source based on the CData JDBC Driver for Trello consists of three basic steps:

  • Add the driver JAR file to the classpath. The JAR file is located in the lib subfolder of the installation directory. Note that the .lic file must be located in the same folder as the JAR file.
  • Provide the driver class. For example:
    cdata.jdbc.trello.TrelloDriver
  • Provide the JDBC URL. For example:
    jdbc:trello:APIKey=myApiKey;Token=myGeneratedToken;
    
    or
    
    jdbc:cdata:trello:APIKey=myApiKey;Token=myGeneratedToken;

    The second format above can be used whenever there is a conflict in your application between drivers using the same URL format to ensure you are using the CData driver. The URL must start with either "jdbc:trello:" or "jdbc:cdata:trello:" and can include any of the connection properties in name-value pairs separated with semicolons.

Trello uses token-based authentication to grant third-party applications access to their API. When a user has granted an application access to their data, the application is given a token that can be used to make requests to Trello's API. Trello's API can be accessed in 2 different ways. The first is using Trello's own Authorization Route, and the second is using OAuth1.0.

Authorization Route

At the moment of registration, Trello assigns an API key and Token to the account. See Using Authorization Route for information on how to connect via the Authorization route.

OAuth Route

Similar to using Authorization, OAuth creates an Application Id and Secret when you create your account. See Using OAuth Authentication for information on how to to connect.

Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 20.0.7654