Skip to content

Upgrade samples to v40 and use new requestBody key #77

@codeekage

Description

@codeekage

Can I make a quick contribution to improving the docs? requestBody object to replace responses like so:

Pass

const req = {
  requestBody: {
          properties: {
            title : sheetTitle
          }
        },
        auth
}
 sheet.spreadsheets.create(req, callback)

//Using Promises

const creatSheet = await  sheet.spreadsheets.create(req)

Fails

const res = {
  resource: {
          properties: {
            title : sheetTitle
          }
        },
        auth
}
 sheet.spreadsheets.create(res, callback)

// Using Promises

const creatSheet =  await sheet.spreadsheets.create(res)

Link: https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/create

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions