Pro_Unit

GetRequestToJSON

May 24th, 2020
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const doGet = (event = {}) =>
  2. {
  3.   const { parameter } = event;
  4.   const { bundleID = 'com.company.product', country = 'Unknown' } = parameter;
  5.  
  6.   const json = { bundleID, country };
  7.  
  8.   return ContentService.createTextOutput(JSON.stringify(json)).setMimeType(ContentService.MimeType.JSON);
  9.  
  10. };
Add Comment
Please, Sign In to add comment