初心者のFileMaker pro Q&A (旧掲示板)

みんなに優しく、解りやすくをモットーに開設しています。 以下のルールを守りみんなで助け合いましょう。

1.ファイルメーカーで解らない事があればここで質問して下さい。 何方でも、ご質問・ご回答お願いします。 (優しく回答しましょう)

You are not logged in.

Announcement

新しい掲示板は、こちら:https://fm-aid.com/forum/t/filemaker


#1 2019-01-17 23:48:51

toshio sato
Member

FileMaker17からGoogleSpreadSheetを操作する

いつもお世話になっています。佐藤と申します。
FileMaker17(Mac)を利用しています。
FileMaker17から GoogleDrive上の既存のGoogleSpreadSheetの値を変更したいと思っています。
GoogleDevelopersのOAuth 2.0 Playgroundでテストするとうまく動作するのですが、これをFileMakerから操作しようとするとエラーが出てしまいます。
OAuth 2.0 Playground
Request URI:
https://sheets.googleapis.com/v4/spreadsheets/[spreadsheetId]:batchUpdate
Request:
POST /v4/spreadsheets/[spreadsheetId]:batchUpdate HTTP/1.1
Host: sheets.googleapis.com
Content-length: 168
Content-type: application/json
Authorization: Bearer ya29.[Access token]

cURLの記述方法が間違っているのだと思うのですが、アドバイスいただければと思います。

URLのフィールドの値
https://sheets.googleapis.com/v4/spreadsheets/[spreadsheetId]:batchUpdate
cURLフィールドの値
-X POST
-H "Content-type: application/json"
-H "Authorization: Bearer [Access token]"
-d "body=[body]"

Offline

#2 2019-01-18 16:05:34

himanine
Guest

Re: FileMaker17からGoogleSpreadSheetを操作する

[body]は置換しているんだと思いますが、それはやめて変数を使ってみては。
あとは、Content-lengthが必須なのかどうか。
Authorizationの値が違う理由は?

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 547.11 KiB (Peak: 582.72 KiB) ]