<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Retrieve data via REST API and post it to a Google Sheet in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Retrieve-data-via-REST-API-and-post-it-to-a-Google-Sheet/m-p/80948#M51013</link>
    <description>&lt;P&gt;Most REST APIs are used to interface with a database or perform other actions. Therefore, to interface with a Google Sheet, you first need to find a REST API that returns data. Then you need to find a way to make that data used for a Google Sheet. This can be done using Google Apps Script to execute queries on a Google Sheet.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jan 2022 11:11:10 GMT</pubDate>
    <dc:creator>michaljonny33</dc:creator>
    <dc:date>2022-01-25T11:11:10Z</dc:date>
    <item>
      <title>Retrieve data via REST API and post it to a Google Sheet</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Retrieve-data-via-REST-API-and-post-it-to-a-Google-Sheet/m-p/80946#M51011</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I am trying to build something for work internally so we can get the data from our time tracker into our Google Sheet report.&lt;/P&gt;&lt;P class=""&gt;Unfortunately I have next to zero knowledge about this.. After a few days of Google research I came this far:&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;function onOpen()&amp;nbsp;{&lt;BR /&gt;var ui&amp;nbsp;=&amp;nbsp;SpreadsheetApp.getUi();&lt;BR /&gt;ui.createMenu('Clockodo&amp;nbsp;API')&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;.addItem('pull&amp;nbsp;data','Clockodo')&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;.addToUi();&lt;BR /&gt;}&lt;BR /&gt;function Clockodo()&amp;nbsp;{&lt;BR /&gt;var options&amp;nbsp;=&amp;nbsp;{};&lt;BR /&gt;options.headers&amp;nbsp;=&amp;nbsp;{"Authorization":&amp;nbsp;"Basic&amp;nbsp;"&amp;nbsp;+&amp;nbsp;Utilities.base64Encode('email'&amp;nbsp;+&amp;nbsp;":"&amp;nbsp;+&amp;nbsp;'token')};&lt;BR /&gt;var response&amp;nbsp;=&amp;nbsp;UrlFetchApp.fetch(options);&lt;BR /&gt;var data&amp;nbsp;=&amp;nbsp;response.getContentText();&lt;BR /&gt;Logger.log(response.getContentText());&lt;BR /&gt;var sheet&amp;nbsp;=&amp;nbsp;SpreadsheetApp.getActiveSpreadsheet().getSheetByName("api_test");&lt;BR /&gt;sheet.getRange(sheet.getLastRow()&amp;nbsp;+&amp;nbsp;1,1).setValue([data]);&lt;BR /&gt;}&lt;/P&gt;&lt;P class=""&gt;The data arrives all in 1 cell like this:&lt;/P&gt;&lt;P class=""&gt;{"paging":{"items_per_page":1000,"current_page":1,"count_pages":1,"count_items":3},"filter":null,"entries":[{"id":46577355,"users_id":132201,"projects_id":1359052,"customers_id":1285331,"services_id":512899,...&lt;/P&gt;&lt;P class=""&gt;And I just cannot figure out how to get this organized into columns or where to add which columns to pull.&lt;/P&gt;&lt;P class=""&gt;If anyone can point me in the right direction I would be very grateful&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 10:19:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Retrieve-data-via-REST-API-and-post-it-to-a-Google-Sheet/m-p/80946#M51011</guid>
      <dc:creator>TuqueroIvantckJ</dc:creator>
      <dc:date>2022-01-25T10:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve data via REST API and post it to a Google Sheet</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Retrieve-data-via-REST-API-and-post-it-to-a-Google-Sheet/m-p/80948#M51013</link>
      <description>&lt;P&gt;Most REST APIs are used to interface with a database or perform other actions. Therefore, to interface with a Google Sheet, you first need to find a REST API that returns data. Then you need to find a way to make that data used for a Google Sheet. This can be done using Google Apps Script to execute queries on a Google Sheet.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 11:11:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Retrieve-data-via-REST-API-and-post-it-to-a-Google-Sheet/m-p/80948#M51013</guid>
      <dc:creator>michaljonny33</dc:creator>
      <dc:date>2022-01-25T11:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve data via REST API and post it to a Google Sheet</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Retrieve-data-via-REST-API-and-post-it-to-a-Google-Sheet/m-p/81029#M51067</link>
      <description>&lt;P&gt;Good comment... Excellent work... Click&lt;A href="https://liverpoolsmanandvanservice.co.uk/general-waste-service-liverpool-wide-range-of-coverage-2/" target="_self"&gt; here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 13:46:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Retrieve-data-via-REST-API-and-post-it-to-a-Google-Sheet/m-p/81029#M51067</guid>
      <dc:creator>michaljonny33</dc:creator>
      <dc:date>2022-01-31T13:46:27Z</dc:date>
    </item>
  </channel>
</rss>

