Ready to get started?

Learn more about the CData ODBC Driver for Xero or download a free trial:

Download Now

DBArtisan でXero Data に連携

DBArtisan のウィザードを使って、Xero data をデータソースとして連携利用。

CData ODBC Driver for Xero は、DBArtisan などのデータベースツールとXero data を連携し、RDB のような感覚でXero データを扱えます。 本記事では、DBArtisan 上でXero データソースを作成する方法とクエリの実行方法を説明します。

DBArtisan Project にXero Data を連携する

If you have not already, first specify connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs.

To connect, set the Schema connection property in addition to any authentication values. Xero offers authentication for private applications, public applications, and partner applications. You will need to set the XeroAppAuthentication property to PUBLIC, PRIVATE, or PARTNER, depending on the type of application configured. To connect from a private application, you will additionally need to set the OAuthAccessToken, OAuthClientId, OAuthClientSecret, CertificateStoreType, CertificateStore, and CertificateStorePassword.

To connect from a public or partner application, you can use the embedded OAuthClientId, OAuthClientSecret, and CallbackURL, or you can register an app to obtain your own OAuth values.

See the "Getting Started" chapter of the help documentation for a guide to authenticating to Xero.

You can then follow the steps below to register Xero data as a database instance in your project:

  1. In DBArtisan, click Data Source -> Register Datasource.
  2. Select Generic ODBC.
  3. Enter a name for the data source and select the DSN.
  4. Finish the wizard to connect to Xero data. Xero entities are displayed in the Datasource Explorer.

You can now work with Xero data as you work with any other database. See the driver help documentation for more information on the queries supported by the Xero API.

 
 
ダウンロード