UrlFetchApp.fetchのparamsに指定するオブジェクトです。Specify this object as params for UrlFetchApp.fetch.

Hierarchy

  • UrlParams

Properties

contentType?: string

コンテンツタイプです。
デフォルトは application/x-www-form-urlencoded となります。
例)'application/xml; charset=utf-8'
Content type
The default is application/x-www-form-urlencoded.
(Example) 'application/xml; charset=utf-8'

escaping?: boolean

リクエストURLをURLエンコードしない場合、 false を設定します。
デフォルトは true となります。
Set to false if the request URL is not URL encoded.
The default is true.

followRedirects?: boolean

リダイレクトを自動的に行わない場合、 false を設定します。
デフォルトは true となります。
Set to false when redirection isn't performed automatically.
The default is true.

headers?: any

リクエストのHTTPヘッダーです。
key/valueのjavascriptオブジェクトを指定します。
HTTP header of the request.
Specifies a javascript object for key/value.

method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"

リクエストのHTTPメソッドです。
値は GET/POST/PUT/DELETE/PATCH のいずれかとなります。
デフォルトは GET となります。
HTTP method of the request.
The value can be either GET/POST/PUT/DELETE/PATCH.
The default is GET.

muteHttpExceptions?: boolean

HTTPレスポンスコードがエラーの場合でも例外をスローされたくない場合、 true を設定します。
デフォルトは false となります。
Set true when you don't want exceptions to be thrown for an error of the HTTP response code.
The default is false.

payload?: any

リクエストボディに設定するデータです。
文字列/key,valueのjavascriptオブジェクト/Uint8Arrayを指定することができます。
Data to be set in the request body.
You can specify string/javascript object for key,value/Uint8Array.

validateHttpsCertificates?: boolean

無効な証明書を無視する場合、 false を設定します。
デフォルトは true となります。
Set to false to ignore invalid certificates.
The default is true.