Test google sheets

This commit is contained in:
Adria Navarro 2023-05-16 10:02:11 +02:00
parent 77102cea12
commit cd93d327a5
1 changed files with 10 additions and 0 deletions

View File

@ -141,6 +141,16 @@ class GoogleSheetsIntegration implements DatasourcePlus {
this.client = new GoogleSpreadsheet(spreadsheetId)
}
async testConnection() {
try {
await this.connect()
await this.client.loadInfo()
return true
} catch (e: any) {
return { error: e.message as string }
}
}
getBindingIdentifier() {
return ""
}