在Postman中使用HTTP请求更新Google表格

时间:2018-01-09 15:26:21

标签: google-api postman google-sheets-api

我的服务器需要更新共享的Google表格。它生成特殊的令牌以供离线使用,因此不适用于PHP快速入门模块。

我正在尝试在Postman中为此操作设置请求: https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/update

但是得到以下结果: enter image description here

是否可以在此API中使用HTTP?

2 个答案:

答案 0 :(得分:1)

原来我必须在网址请求的末尾添加?valueInputOption=RAW,并从请求正文JSON中删除valueInputOption

答案 1 :(得分:0)

valueInputOption应该作为参数传递给POST URL,它不应位于请求正文中。 还要在网址中发送sheetID和范围。 我想这应该是POST调用而不是PUT。