]> git.immae.eu Git - github/fretlink/tap-google-sheets.git/commitdiff
Update streams.py and README
authorJeff Huth <jeff.huth@bytecode.io>
Thu, 14 Nov 2019 01:12:54 +0000 (17:12 -0800)
committerJeff Huth <jeff.huth@bytecode.io>
Thu, 14 Nov 2019 01:12:54 +0000 (17:12 -0800)
Update streams.py and README

README.md
state.json.example
tap_google_sheets/streams.py

index 6fcb0b95d86e7743fc1ce251825ac5dcc4082ba3..5752b64f5e466120c135c7213e0a4511d7878ea2 100644 (file)
--- a/README.md
+++ b/README.md
@@ -8,8 +8,8 @@ This tap:
 
 - Pulls raw data from the [Google Sheets v4 API](https://developers.google.com/sheets/api)
 - Extracts the following endpoints:
-  - [Spreadsheet File](https://developers.google.com/drive/api/v3/reference/files/get)
-  - [Spreadsheet Metadata, Sheets, Headers](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/get)
+  - [File Metadata](https://developers.google.com/drive/api/v3/reference/files/get)
+  - [Spreadsheet Metadata](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/get)
   - [Spreadsheet Values](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/get)
 - For each Sheet:
   - Outputs the schema for each resource (based on the column header and datatypes of first row of data)
@@ -114,8 +114,7 @@ The [**Google Sheets Setup & Authentication**](https://drive.google.com/open?id=
     {
         "currently_syncing": "file_metadata",
         "bookmarks": {
-            "file_metadata": "2019-09-27T22:34:39.000000Z",
-            "sheets_loaded": "2019-09-27T21:55:42.000000Z"
+            "file_metadata": "2019-09-27T22:34:39.000000Z"
         }
     }
     ```
index c33cc8fb37d3077d907f9a63186e2f73068c1ea8..a5ccda72f19ad402ff7cf25d9be7a427eb5bc921 100644 (file)
@@ -1,6 +1,6 @@
 {
-       "currently_syncing": "spreadsheets",
+       "currently_syncing": "file_metadata",
        "bookmarks": {
-               "file": "2019-09-27T22:34:39.000000Z"
+               "file_metadata": "2019-09-27T22:34:39.000000Z"
        }
 }
index 299326a64a4cebd82a83015621288a55602c3e91..231a41d0cde60e8915136e7f79bbf44b1454201d 100644 (file)
@@ -18,7 +18,8 @@ FILE_METADATA = {
     "api": "files",
     "path": "files/{spreadsheet_id}",
     "key_properties": ["id"],
-    "replication_method": "FULL_TABLE",
+    "replication_method": "INCREMENTAL",
+    "replication_keys": ["modifiedTime"],
     "params": {
         "fields": "id,name,createdTime,modifiedTime,version,teamDriveId,driveId,lastModifyingUser"
     }