![]() |
VOOZH | about |
The CData ODBC Driver for Typeform can be used from any platform or development technology that supports ODBC, including PowerBuilder. This article shows how to connect to Typeform data and execute queries from the Database Painter and controls such as the DataWindow.
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.
Start by setting the Profile connection property to the location of the TypeForm Profile on disk (e.g. C:\profiles\TypeForm.apip). Next, set the ProfileSettings connection property to the connection string for TypeForm (see below).
Authentication to TypeForm uses the OAuth standard.
To authenticate to TypeForm, you must first register and configure an OAuth application with TypeForm here: https://admin.typeform.com/account#/section/tokens. Your app will be assigned a client ID and a client secret which can be set in the connection string. More information on setting up an OAuth application can be found at https://developer.typeform.com/get-started/.
Note that there are several different use scenarios which all require different redirect URIs:
After setting the following connection properties, you are ready to connect:
Follow the steps below to use the Database Painter tool to create a database profile based on an ODBC DSN (data source name) for Typeform. In the Database Painter, you can use wizards and the UI to work with Typeform data.
You can use standard PowerBuilder objects to connect to ODBC data sources and execute queries. The following example shows how to retrieve Typeform data into a DataWindow. You can add the following code to the open method:
SQLCA.DBMS = "ODBC" SQLCA.DBParm = "ConnectString='DSN=CData API Source'" CONNECT USING SQLCA; dw_tags.SetTransObject(SQLCA); dw_tags.Retrieve();
Connect to live data from Typeform with the API Driver
Connect to Typeform