Keikai: how to check if filter is enabled - spreadsheet

I am trying to import an Excel file that has filter into Keikai Spreadsheet for further integration. I need to know programmatically if the filter in the sheet is enabled or not, and its range. What is the right API to use? Can someone give me an example?

You can call
spreadsheet.getWorksheet().isAutoFilterEnabled();
spreadsheet.getWorksheet().getAutoFilterRange();
Please refer to https://keikai.io/javadoc/latest/io/keikai/client/api/Worksheet.html

Related

Add Quillbot API to Google Sheets

I have just discovered GPT-3 and found Quillbot website. I got suscribed, but I want to add their paraphrase function into Google Sheets.
I found that Google Sheets has a section where you can add functions via API. In order to apply this actions in bulk.
When you have a Quillbot premium account, you get an Api.
I have been searching if there is already something done. But I have not found it. Just this: https://rapidapi.com/quillbotapi-quillbotapi-default/api/quillbot-paraphraser
Can someone please help me to do this function in Google Sheets?
Thank you very much.

How to use Smartsheet- API to export specific data on Excel file

I am trying to find out if it's possible to use Smartsheet API or any other method to export specific columns data from Report Builder results to Excel file rather than the whole column that was generated from it. I am new to Smartheet and if you need better clarification or if there is any method to this approach, please let me know.
You can get the results of a Report via the Smartsheet API. When you make the request the Report is run to give you the current results of the Report just as if you opened it in your browser. There is also a specific request in the Smartsheet API on Reports to get the data provided as an Excel file. With this you can then work with the data in Excel as you need. This request is listed in the Smartsheet API docs here:
http://smartsheet-platform.github.io/api-docs/#get-report-as-excel-csv

how to invoke server to get data from spreadsheet

I'm using google spreadsheet api to visualize data for users and I want to get feedback if data is wrong. I found how to get data from server side to spreadsheet here
https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/get
but i can't find out how to request sending data from spreadsheet to server. what i thought is write down url in one cell. so if user click url then get data from user's spreadsheet.
Can you suggest me better idea?
thanks in advance.

How can I detect new row or updated row in Google Sheets through the api?

Can anyone help me figure out how to detect new row or updated row in a Google sheets through the api ? Something like a webhook ?
I think you can only do it with the help of Apps Script. You can use a trigger here to detect if something is change in your spreadsheet. The triggers let Apps Script run a function automatically when a certain event, like opening a document, occurs. Simple triggers are a set of reserved functions built into Apps Script, like the function onOpen(e), which executes when a user opens a Google Docs, Sheets, or Forms file. For more information, check this related SO question.

Google Sheets API v4: Modifying URL in get request to filter data returned?

Is there a way to get a subset of data using Google Sheets API v4 by modifying the URL https://sheets.googleapis.com/v4/spreadsheets/SPREADSHEET_ID/values/Sheet1?key=APIKEY[something added to this URL]?
Specifically, I know that you can restrict the result by setting the range. But is there a way to filter the data in other ways through modifying the URL, say returning all rows containing 'John', or something like that?
This question is about Google Sheets API v4.
Many thanks.
Nope, there is no way to do that. According to the documentation the only parameters for this endpoint other than spreadsheet ID and range are:
majorDimension
valueRenderOption
dateTimeRenderOption
However, all of these control rendering of the returned data and not filtering of the data.
It seems this feature is not supported yet. I suggest you specify a range i.e., A1:K10, and after procuring all data, perform a search.
You can also check this SO thread for additional insight.