Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code sample response after add sheet is not accurate #109

Open
jargetz opened this issue Nov 15, 2020 · 0 comments
Open

Code sample response after add sheet is not accurate #109

jargetz opened this issue Nov 15, 2020 · 0 comments

Comments

@jargetz
Copy link

jargetz commented Nov 15, 2020

const sourceSheetId = response.replies[0].addSheet.properties.sheetId;

The code sample here that gives an example how to extract an add sheet response is not the same as what I'm seeing.

I see the reply in response.data.replies[0]. Can you please update this or explain why there may be a discrepancy?

"data": {
    "spreadsheetId": "",
    "replies": [
      {},
      {
        "addSheet": {
          "properties": {
            "sheetId": 123,
            "title": "Data",
            "index": 1,
            "sheetType": "GRID",
            "gridProperties": {
              "rowCount": 9158,
              "columnCount": 65,
              "frozenRowCount": 2,
              "frozenColumnCount": 5
            }
          }
        }
      }
    ]
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant