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:
- 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.
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.
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.