{"id":4545,"date":"2018-08-04T20:44:39","date_gmt":"2018-08-04T20:44:39","guid":{"rendered":"https:\/\/zappysys.com\/blog\/?p=4545"},"modified":"2018-09-26T03:34:25","modified_gmt":"2018-09-26T03:34:25","slug":"pentaho-read-rest-api-in-pentaho","status":"publish","type":"post","link":"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/","title":{"rendered":"How to read REST API in Pentaho Kettle"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-4640\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-150x150.png\" alt=\"Pentaho logo\" width=\"115\" height=\"115\" \/><\/a>In this article, we will learn how to read REST API in Pentaho Kettle. Pentaho is a very\u00a0popular tool in Business Intelligence to integrate data for OLAP services and to\u00a0create reports and dashboards. In this article, we will use our\u00a0<a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/purchase\/\" target=\"_blank\" rel=\"noopener\">ZappySys ODBC\u00a0PowerPack<\/a> to connect to REST API in Pentaho Kettle.<\/p>\n<p>Our software requires the JDBC\u00a0connector for SQL Server and then Uses our ZappySys Gateway to connect.<\/p>\n<h2><\/h2>\n<h2>Requirements<\/h2>\n<ol>\n<li>First of all, we will require the\u00a0<a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/purchase\/\" target=\"_blank\" rel=\"noopener\">ZappySys ODBC PowerPack.<\/a><\/li>\n<li>Secondly, we will use\u00a0<a href=\"https:\/\/community.hitachivantara.com\/docs\/DOC-1009855-data-integration-kettle\" target=\"_blank\" rel=\"noopener\">Pentaho Kettle (Our example in this post uses v8.1)<\/a><\/li>\n<li>Finally, we will require the\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/connect\/jdbc\/microsoft-jdbc-driver-for-sql-server?view=sql-server-2017\" target=\"_blank\" rel=\"noopener\">JDBC driver for SQL Server<\/a>.<\/li>\n<\/ol>\n<h2>Getting started<\/h2>\n<p>First of all, we will need to create an ODBC connection to REST API using\u00a0the Windows ODBC Data Source Administrator. Next, we will create a gateway and\u00a0finally, we will invoke the data in Pentaho.<\/p>\n<h3>Create an ODBC connection to read REST API in Pentaho Kettle<\/h3>\n<p>In this example, we will first create an ODBC connection to an URL.<\/p>\n<ol>\n<li>First of all, open the ODBC Data Source administrator in Windows in the\u00a0System DSN press Add:\n<div id=\"attachment_4484\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/add-new-data-source-odbc-administrator.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4484\" class=\"size-full wp-image-4484\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/add-new-data-source-odbc-administrator.png\" alt=\"Include JSON driver in ODBC Data source\" width=\"590\" height=\"423\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/add-new-data-source-odbc-administrator.png 590w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/add-new-data-source-odbc-administrator-300x215.png 300w\" sizes=\"(max-width: 590px) 100vw, 590px\" \/><\/a><p id=\"caption-attachment-4484\" class=\"wp-caption-text\">Add new ODBC driver<\/p><\/div><\/li>\n<li>Secondly, select the ZappySys JSON Driver:\n<div id=\"attachment_4485\" style=\"width: 471px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/create-new-data-source-zappysys-json-driver-1.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4485\" class=\"size-full wp-image-4485\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/create-new-data-source-zappysys-json-driver-1.png\" alt=\"Use ZappySys ODBC Driver\" width=\"461\" height=\"346\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/create-new-data-source-zappysys-json-driver-1.png 461w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/create-new-data-source-zappysys-json-driver-1-300x225.png 300w\" sizes=\"(max-width: 461px) 100vw, 461px\" \/><\/a><p id=\"caption-attachment-4485\" class=\"wp-caption-text\">Select JSON driver in ODBC DS Administrator<\/p><\/div><\/li>\n<li>Finally, add a data source name and specify a link to a URL. In this\u00a0example, we will connect to the following url:\n<pre class=\"lang:default highlight:0 decode:true \">URL: https:\/\/services.odata.org\/V3\/Northwind\/Northwind.svc\/Invoices?$format=json<\/pre>\n<div id=\"attachment_4488\" style=\"width: 812px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/zappysys-json-driver-url.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4488\" class=\"size-full wp-image-4488\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/zappysys-json-driver-url.png\" alt=\"URL for OData REST API\" width=\"802\" height=\"702\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/zappysys-json-driver-url.png 802w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/zappysys-json-driver-url-300x263.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/zappysys-json-driver-url-768x672.png 768w\" sizes=\"(max-width: 802px) 100vw, 802px\" \/><\/a><p id=\"caption-attachment-4488\" class=\"wp-caption-text\">REST API ODBC URL<\/p><\/div><\/li>\n<\/ol>\n<h3>Create a ZappySys gateway to JDBC to read REST API in Pentaho<\/h3>\n<p>In order to connect to REST API, ZappySys ODBC PowerPack uses the JDBC for\u00a0SQL Server and a gateway. Let&#8217;s take a look at it:<\/p>\n<ol>\n<li>First of all, open the ZappySys Gateway that is installed with the ODBC\u00a0PowerPack and add a new data source:\n<div id=\"attachment_4490\" style=\"width: 567px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/zappysys-data-gateway.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4490\" class=\"size-full wp-image-4490\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/zappysys-data-gateway.png\" alt=\"Gateway add Data Source\" width=\"557\" height=\"209\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/zappysys-data-gateway.png 557w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/zappysys-data-gateway-300x113.png 300w\" sizes=\"(max-width: 557px) 100vw, 557px\" \/><\/a><p id=\"caption-attachment-4490\" class=\"wp-caption-text\">Add new Data Source in ZappySys Gateway<\/p><\/div><\/li>\n<li>Secondly, add the data source name:\n<div id=\"attachment_4554\" style=\"width: 378px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/new-datasource-odbc-odata-gateway.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4554\" class=\"size-full wp-image-4554\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/new-datasource-odbc-odata-gateway.png\" alt=\"Create gateway to REST API\" width=\"368\" height=\"158\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/new-datasource-odbc-odata-gateway.png 368w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/new-datasource-odbc-odata-gateway-300x129.png 300w\" sizes=\"(max-width: 368px) 100vw, 368px\" \/><\/a><p id=\"caption-attachment-4554\" class=\"wp-caption-text\">Pentaho REST Client<\/p><\/div><\/li>\n<li>In addition, in the user&#8217;s tab, add the user test and specify a password:\n<div id=\"attachment_2941\" style=\"width: 377px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/zappysys-gateway-login.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2941\" class=\"size-full wp-image-2941\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/zappysys-gateway-login.png\" alt=\"Add user and login\" width=\"367\" height=\"200\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/zappysys-gateway-login.png 367w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/zappysys-gateway-login-300x163.png 300w\" sizes=\"(max-width: 367px) 100vw, 367px\" \/><\/a><p id=\"caption-attachment-2941\" class=\"wp-caption-text\">Add user and login<\/p><\/div><\/li>\n<li>Also, in settings, press edit and add the ODBC Data Source created in the\u00a0previous section and add the user created before:\n<div id=\"attachment_4491\" style=\"width: 569px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/add-datasource-gateway.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4491\" class=\"size-full wp-image-4491\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/add-datasource-gateway.png\" alt=\"ODBC connection to Default gateway\" width=\"559\" height=\"477\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/add-datasource-gateway.png 559w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/add-datasource-gateway-300x256.png 300w\" sizes=\"(max-width: 559px) 100vw, 559px\" \/><\/a><p id=\"caption-attachment-4491\" class=\"wp-caption-text\">Link Data Source in ODBC with the default gateway<\/p><\/div><\/li>\n<li>Finally, in the General tab, you can specify the port. By default, it is 5000.<br \/>\nMake sure to save the changes and check the gateway is started with the\u00a0start button:<\/p>\n<div id=\"attachment_4495\" style=\"width: 572px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/gateway-zappysys-default-port.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4495\" class=\"size-full wp-image-4495\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/gateway-zappysys-default-port.png\" alt=\"Port 5000 in the default gateway\" width=\"562\" height=\"539\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/gateway-zappysys-default-port.png 562w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/gateway-zappysys-default-port-300x288.png 300w\" sizes=\"(max-width: 562px) 100vw, 562px\" \/><\/a><p id=\"caption-attachment-4495\" class=\"wp-caption-text\">Default gateway with port 5000<\/p><\/div><\/li>\n<\/ol>\n<h3>How to read REST API in Pentaho<\/h3>\n<ol>\n<li>First of all, in Pentaho, we will create a project like the following:\n<div id=\"attachment_4556\" style=\"width: 487px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-rest-api-to-a-csv-file.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4556\" class=\"size-full wp-image-4556\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-rest-api-to-a-csv-file.png\" alt=\"Client Pentaho REST API\" width=\"477\" height=\"162\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-rest-api-to-a-csv-file.png 477w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-rest-api-to-a-csv-file-300x102.png 300w\" sizes=\"(max-width: 477px) 100vw, 477px\" \/><\/a><p id=\"caption-attachment-4556\" class=\"wp-caption-text\">Pentaho Project REST API csv<\/p><\/div><\/li>\n<li>Secondly, we will create a query like the following:\n<div id=\"attachment_4557\" style=\"width: 555px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-table-input-query.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4557\" class=\"size-full wp-image-4557\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-table-input-query.png\" alt=\"SQL query to REST API in Pentaho\" width=\"545\" height=\"697\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-table-input-query.png 545w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-table-input-query-235x300.png 235w\" sizes=\"(max-width: 545px) 100vw, 545px\" \/><\/a><p id=\"caption-attachment-4557\" class=\"wp-caption-text\">A query in Pentaho to get data<\/p><\/div><\/li>\n<li>In addition, we will add the following connection. We will connect to\u00a0the data source named customers created in the ZappySys Gateway with port\u00a05000 and the user created in the Gateway:\n<div id=\"attachment_4558\" style=\"width: 1362px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-JDBC-connection-sql-server.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4558\" class=\"size-full wp-image-4558\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-JDBC-connection-sql-server.png\" alt=\"How to connect to the Gateway\" width=\"1352\" height=\"603\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-JDBC-connection-sql-server.png 1352w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-JDBC-connection-sql-server-300x134.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-JDBC-connection-sql-server-768x343.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-JDBC-connection-sql-server-1024x457.png 1024w\" sizes=\"(max-width: 1352px) 100vw, 1352px\" \/><\/a><p id=\"caption-attachment-4558\" class=\"wp-caption-text\">JDBC connection to SQL Server<\/p><\/div><\/li>\n<li>If everything is OK, you will be able to see the CSV file generated:\n<div id=\"attachment_4559\" style=\"width: 1351px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-rest-api-to-csv-output-file.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4559\" class=\"size-full wp-image-4559\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-rest-api-to-csv-output-file.png\" alt=\"Exported data from REST API to CSV\" width=\"1341\" height=\"506\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-rest-api-to-csv-output-file.png 1341w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-rest-api-to-csv-output-file-300x113.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-rest-api-to-csv-output-file-768x290.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-rest-api-to-csv-output-file-1024x386.png 1024w\" sizes=\"(max-width: 1341px) 100vw, 1341px\" \/><\/a><p id=\"caption-attachment-4559\" class=\"wp-caption-text\">Data in CSV format<\/p><\/div><\/li>\n<li>Also, you can use SQL statements. The following example shows how to do\u00a0a where filter:\n<pre class=\"lang:tsql decode:true \">SELECT Shipname \r\nFROM value\r\nwhere Shipname='Consolidated Holdings'<\/pre>\n<\/li>\n<li>Finally, we will show the first 10 rows using a group by:\n<pre class=\"lang:tsql decode:true \">SELECT Shipname \r\nFROM value\r\ngroup by shipname\r\nlimit 10<\/pre>\n<\/li>\n<\/ol>\n<h3>How to read REST API in Pentaho (Gmail)<\/h3>\n<p>The following example will show how to get Gmail information from Pentaho.<\/p>\n<ol>\n<li>First of all, we will need to create a connection to Gmail in ODBC using\u00a0the ZappySys ODBC Driver (Check the Create an ODBC connection for a Pentaho REST Client\u00a0section). In the ODBC Administrator, we will add a ZappySys JSON Driver\u00a0connection.<\/li>\n<li>Secondly, in the ZappySys ODBC driver, specify the URL and select the\u00a0OAuth connection:\n<div id=\"attachment_4560\" style=\"width: 812px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/Pentaho-gmail-configuration.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4560\" class=\"size-full wp-image-4560\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/Pentaho-gmail-configuration.png\" alt=\"Configure ODBC to REST API\" width=\"802\" height=\"702\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/Pentaho-gmail-configuration.png 802w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/Pentaho-gmail-configuration-300x263.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/Pentaho-gmail-configuration-768x672.png 768w\" sizes=\"(max-width: 802px) 100vw, 802px\" \/><\/a><p id=\"caption-attachment-4560\" class=\"wp-caption-text\">ODBC configuration<\/p><\/div><\/li>\n<li>Also, in the OAuth properties specify the Google OAuth provider and the https:\/\/mail.google.com scope. Press the generate token button and specify your credentials and accept the access permission request:\n<div id=\"attachment_4561\" style=\"width: 596px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-gmail-oauth-configuration.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4561\" class=\"size-full wp-image-4561\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-gmail-oauth-configuration.png\" alt=\"Configure OAuth connection\" width=\"586\" height=\"493\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-gmail-oauth-configuration.png 586w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-gmail-oauth-configuration-300x252.png 300w\" sizes=\"(max-width: 586px) 100vw, 586px\" \/><\/a><p id=\"caption-attachment-4561\" class=\"wp-caption-text\">Gmail OAuth connection<\/p><\/div><\/li>\n<li>In addition, using the ZappysSys Data Gateway, add the new Data Source\u00a0and associate with the ODBC connection just created:\n<div id=\"attachment_4563\" style=\"width: 572px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-gateway-to-connect-to-gmail-ODBC.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4563\" class=\"size-full wp-image-4563\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-gateway-to-connect-to-gmail-ODBC.png\" alt=\"Add ODBC to the ZappySys gateway\" width=\"562\" height=\"464\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-gateway-to-connect-to-gmail-ODBC.png 562w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-gateway-to-connect-to-gmail-ODBC-300x248.png 300w\" sizes=\"(max-width: 562px) 100vw, 562px\" \/><\/a><p id=\"caption-attachment-4563\" class=\"wp-caption-text\">Connect Pentaho with Gmail<\/p><\/div><\/li>\n<li>Additionally, add the test user to the data source:\n<div id=\"attachment_4564\" style=\"width: 662px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-add-user-data-source.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4564\" class=\"size-full wp-image-4564\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-add-user-data-source.png\" alt=\"Gateway user to connect to REST API\" width=\"652\" height=\"408\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-add-user-data-source.png 652w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-add-user-data-source-300x188.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-add-user-data-source-436x272.png 436w\" sizes=\"(max-width: 652px) 100vw, 652px\" \/><\/a><p id=\"caption-attachment-4564\" class=\"wp-caption-text\">Include user and permission to the gateway<\/p><\/div><\/li>\n<li>In Pentaho, change the connection in the table input to connect to the Gateway:\n<div id=\"attachment_4565\" style=\"width: 1266px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/gmail-connection.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4565\" class=\"size-full wp-image-4565\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/gmail-connection.png\" alt=\"Use Pentaho Rest client to connect to Gamil\" width=\"1256\" height=\"603\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/gmail-connection.png 1256w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/gmail-connection-300x144.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/gmail-connection-768x369.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/gmail-connection-1024x492.png 1024w\" sizes=\"(max-width: 1256px) 100vw, 1256px\" \/><\/a><p id=\"caption-attachment-4565\" class=\"wp-caption-text\">Pentaho Rest client to Gmail<\/p><\/div><\/li>\n<li>Finally, in the table input add the following query:\n<div id=\"attachment_4566\" style=\"width: 555px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-rest-api-query-gmail.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4566\" class=\"wp-image-4566 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-rest-api-query-gmail.png\" alt=\"Query to get Gmail data and read REST API in Pentaho\" width=\"545\" height=\"212\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-rest-api-query-gmail.png 545w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho-rest-api-query-gmail-300x117.png 300w\" sizes=\"(max-width: 545px) 100vw, 545px\" \/><\/a><p id=\"caption-attachment-4566\" class=\"wp-caption-text\">Connect Pentaho to Gmail<\/p><\/div><\/li>\n<\/ol>\n<h3>Conclusions<\/h3>\n<p>To conclude, we can say that it is simple to connect to the REST API using\u00a0Pentaho with the help of ZappySys ODBC PowerPack. This tool allows to easily\u00a0query REST API data like a simple SQL Query. If you like this tool you can<br \/>\ndownload the <a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/purchase\/\" target=\"_blank\" rel=\"noopener\">ODBC PowerPack here<\/a>.<\/p>\n<h3>References<\/h3>\n<p>For more information, refer to the following links:<\/p>\n<ul>\n<li><a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/purchase\/\" target=\"_blank\" rel=\"noopener\">ZappySys ODBC PowerPack<\/a><\/li>\n<li><a href=\"https:\/\/intellipaat.com\/tutorial\/pentaho-tutorial\/introduction-to-pentaho\/\" target=\"_blank\" rel=\"noopener\">Introduction To Pentaho<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In this article, we will learn how to read REST API in Pentaho Kettle. Pentaho is a very\u00a0popular tool in Business Intelligence to integrate data for OLAP services and to\u00a0create reports and dashboards. In this article, we will use our\u00a0ZappySys ODBC\u00a0PowerPack to connect to REST API in Pentaho Kettle. Our software requires the JDBC\u00a0connector [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":4640,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[381,277,380,276],"tags":[272,306,279,364,271],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>How to read REST API in Pentaho Kettle | ZappySys Blog<\/title>\r\n<meta name=\"description\" content=\"We will learn how to read REST API in Pentaho. This method requires ZappySys ODBC PowerPack to connect to it. We will check step by step howto do it.\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"How to read REST API in Pentaho Kettle | ZappySys Blog\" \/>\r\n<meta property=\"og:description\" content=\"We will learn how to read REST API in Pentaho. This method requires ZappySys ODBC PowerPack to connect to it. We will check step by step howto do it.\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/\" \/>\r\n<meta property=\"og:site_name\" content=\"ZappySys Blog\" \/>\r\n<meta property=\"article:published_time\" content=\"2018-08-04T20:44:39+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2018-09-26T03:34:25+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho.png\" \/>\r\n\t<meta property=\"og:image:width\" content=\"332\" \/>\r\n\t<meta property=\"og:image:height\" content=\"350\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\r\n<meta name=\"author\" content=\"ZappySys Team\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ZappySys Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/\",\"url\":\"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/\",\"name\":\"How to read REST API in Pentaho Kettle | ZappySys Blog\",\"isPartOf\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho.png\",\"datePublished\":\"2018-08-04T20:44:39+00:00\",\"dateModified\":\"2018-09-26T03:34:25+00:00\",\"author\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/91b041e2dcf7ece5f068893c1a68ac6e\"},\"description\":\"We will learn how to read REST API in Pentaho. This method requires ZappySys ODBC PowerPack to connect to it. We will check step by step howto do it.\",\"breadcrumb\":{\"@id\":\"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/#primaryimage\",\"url\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho.png\",\"contentUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho.png\",\"width\":332,\"height\":350,\"caption\":\"Pentaho logo\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/zappysys.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to read REST API in Pentaho Kettle\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zappysys.com\/blog\/#website\",\"url\":\"https:\/\/zappysys.com\/blog\/\",\"name\":\"ZappySys Blog\",\"description\":\"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zappysys.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/91b041e2dcf7ece5f068893c1a68ac6e\",\"name\":\"ZappySys Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/746bec9c9d27f1b90bb181aa516ee234?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/746bec9c9d27f1b90bb181aa516ee234?s=96&d=mm&r=g\",\"caption\":\"ZappySys Team\"},\"sameAs\":[\"https:\/\/zappysys.com\"],\"url\":\"https:\/\/zappysys.com\/blog\/author\/dcalbimonte\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to read REST API in Pentaho Kettle | ZappySys Blog","description":"We will learn how to read REST API in Pentaho. This method requires ZappySys ODBC PowerPack to connect to it. We will check step by step howto do it.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/","og_locale":"en_US","og_type":"article","og_title":"How to read REST API in Pentaho Kettle | ZappySys Blog","og_description":"We will learn how to read REST API in Pentaho. This method requires ZappySys ODBC PowerPack to connect to it. We will check step by step howto do it.","og_url":"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/","og_site_name":"ZappySys Blog","article_published_time":"2018-08-04T20:44:39+00:00","article_modified_time":"2018-09-26T03:34:25+00:00","og_image":[{"width":332,"height":350,"url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho.png","type":"image\/png"}],"author":"ZappySys Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ZappySys Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/","url":"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/","name":"How to read REST API in Pentaho Kettle | ZappySys Blog","isPartOf":{"@id":"https:\/\/zappysys.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/#primaryimage"},"image":{"@id":"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/#primaryimage"},"thumbnailUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho.png","datePublished":"2018-08-04T20:44:39+00:00","dateModified":"2018-09-26T03:34:25+00:00","author":{"@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/91b041e2dcf7ece5f068893c1a68ac6e"},"description":"We will learn how to read REST API in Pentaho. This method requires ZappySys ODBC PowerPack to connect to it. We will check step by step howto do it.","breadcrumb":{"@id":"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/#primaryimage","url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho.png","contentUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/pentaho.png","width":332,"height":350,"caption":"Pentaho logo"},{"@type":"BreadcrumbList","@id":"https:\/\/zappysys.com\/blog\/pentaho-read-rest-api-in-pentaho\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zappysys.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to read REST API in Pentaho Kettle"}]},{"@type":"WebSite","@id":"https:\/\/zappysys.com\/blog\/#website","url":"https:\/\/zappysys.com\/blog\/","name":"ZappySys Blog","description":"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zappysys.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/91b041e2dcf7ece5f068893c1a68ac6e","name":"ZappySys Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/746bec9c9d27f1b90bb181aa516ee234?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/746bec9c9d27f1b90bb181aa516ee234?s=96&d=mm&r=g","caption":"ZappySys Team"},"sameAs":["https:\/\/zappysys.com"],"url":"https:\/\/zappysys.com\/blog\/author\/dcalbimonte\/"}]}},"_links":{"self":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/4545"}],"collection":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/comments?post=4545"}],"version-history":[{"count":17,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/4545\/revisions"}],"predecessor-version":[{"id":4952,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/4545\/revisions\/4952"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media\/4640"}],"wp:attachment":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media?parent=4545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/categories?post=4545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/tags?post=4545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}