How curl maps onto Google App Script URLFetchApp
问题 I'm looking to implement Stripe in Google Apps Script, which comes with a URLFetch feature for communicating with third parties. However, I'm confused how the curl format that Stripe uses maps onto URLFetch. Here's an example of a Stripe call from their documentation: curl https://api.stripe.com/v1/charges \ -u testtoken123: \ -H "Idempotency-Key: testkey" \ -d amount=2000 \ -d currency=usd \ -d description="Charge for jenny.rosen@example.com" \ -d source=tok_mastercard And the URLFetchApp