Preflight required columns before you call the API
The CRM sync ran fine for weeks. Then one row had a blank email, the API answered 400 Bad Request: invalid_parameter, and the job stopped…
Preflight required columns before you call the API
The CRM sync ran fine for weeks. Then one row had a blank email, the API answered 400 Bad Request: invalid_parameter, and the job stopped…
Stay under someone else’s API rate limit
Third-party APIs rarely care that your nightly trigger "usually" fits. When five client files share one key — or one file fans out 200 GETs…
Assert Required Keys
The API call failed because row 37 had no email. Worse, it succeeded with an empty amount. assertRequiredKeys(obj, requiredKeys, opts…
JSON OK / ERR helpers for Web Apps
doGet / doPost handlers stay readable when every success and failure returns the same JSON shape. jsonOk / jsonErr wrap ContentService so…
Build a Query String for UrlFetch
Hand-building ?a=1&b=2 is how spaces and ampersands sneak into broken UrlFetch GETs. buildQueryString walks a plain object, skips null/empty…