title | description | author | ms.author | ms.service | ms.topic |
---|---|---|---|---|---|
UrlFetchApp object |
The top-level object used to fetch resources from the web. |
jonmeyers |
jonmeyers |
bing-ads-scripts |
article |
This is the top-level object used to fetch resources from the web.
Method Name | Return Type | Description |
---|---|---|
fetch(url) | HTTPResponse | Gets a resource from the web. |
fetch(url, params) | HTTPResponse | Lets you manage a web resource. |
getRemainingDailyQuota | int | Gets the remaining number of fetch() calls that the user can make today. |
Gets a resource from the web.
This is the equivalent of an HTTP GET request. This method waits until the request completes.
Name | Type | Description |
---|---|---|
url | string | The URL of the web resource to get. Supports HTTP and HTTPS requests. The URL may include query parameters. |
Type | Description |
---|---|
HTTPResponse | Contains the methods for getting the response's payload and status code. |
Lets you manage a web resource.
Use this method to get, post, put, patch or delete a web resource. This method waits until the request completes.
Name | Type | Description |
---|---|---|
url | string | The URL of the web resource. |
params | UrlFetchParams | The request's parameters such as its headers, HTTP method, and payload. |
Type | Description |
---|---|
HTTPResponse | Contains the methods for getting the response's payload and status code. |
Gets the remaining number of fetch()
calls that the user can make today. See UrlFetch limits.
Type | Description |
---|---|
int | The remaining number of fetch() calls that the user can make today. |