postman-code-generators icon indicating copy to clipboard operation
postman-code-generators copied to clipboard

Add support for Google App Script (UrlFetchApp)

Open rayliuca opened this issue 4 years ago • 2 comments

Added support for Google Apps Script's UrlFetchApp class as per #447

Google documentation: https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app

rayliuca avatar Jan 22 '21 05:01 rayliuca

My implementation is based on the javascript-xhr code generator, but do note that the UrlFetchApp class is non-existent on Node.js so it is impossible to run the Newman tests. I adapted the unit tests from the xhr variant and manually tested the generated codes on GAS to make sure it has most of the common functionalities.

Sample response of the post_formData.js

image

rayliuca avatar Jan 22 '21 06:01 rayliuca

Would love to see this feature added!

clairefro avatar Oct 06 '21 13:10 clairefro