googleapis / google-api-nodejs-client

Google's officially supported Node.js client library for accessing Google APIs. Support for authorization and authentication with OAuth 2.0, API Keys and JWT (Service Tokens) is included.
https://googleapis.dev/nodejs/googleapis/latest/
Apache License 2.0
11.27k stars 1.91k forks source link

Google sheet api valueRenderOption doesn't work properly #3384

Open Chathula opened 8 months ago

Chathula commented 8 months ago

1) Is this a client library issue or a product issue?

2) Did someone already solve this?

Environment details

Steps to reproduce

  1. I tried to fetch spreadsheet values using the below method. but it returns numeric values as it is, when I use the google API Explorer, it returns all the values as strings. I want to get all the values as strings in this case.

    sheetsApi.spreadsheets.values.get({
            spreadsheetId,
            range,
            valueRenderOption: 'FORMATTED_VALUE',
        })

https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/get