Complete the code to create a new HTTP GET request using UrlFetchApp.
var response = UrlFetchApp.[1]('https://api.example.com/data');
The correct method to make an HTTP request in Apps Script is fetch.
Complete the code to parse the JSON response text into an object.
var data = JSON.[1](response.getContentText());Use JSON.parse to convert JSON text into a JavaScript object.
Fix the error in the code to set the HTTP method to POST in the options object.
var options = {method: '[1]', contentType: 'application/json'};The HTTP method must be uppercase 'POST' to be recognized correctly.
Fill both blanks to create a POST request with JSON payload.
var options = {method: '[1]', payload: JSON.[2](data)};Use POST as method and JSON.stringify to convert data to JSON text for payload.
Fill all three blanks to extract a value from the JSON response and set it in a sheet cell.
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('[1]'); sheet.getRange([2], [3]).setValue(data.result);
Use the sheet named 'Data', set value at row 1, column 2 to the result from data.
