-
Notifications
You must be signed in to change notification settings - Fork 364
Description
Is your feature request related to a problem? Please describe.
No code generator is compatible with Google Apps Script and GAS doesn't support regular JS libraries regarding API requests
Describe the solution you'd like
Implement postman code generation for UrlFetchApp
Additional context
An issue on the postman-app-support:
postmanlabs/postman-app-support#3298
My implementation:
https://github.com/rayliuca/postman-code-generators/tree/develop/codegens/js-urlfetchapp
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.