Skip to content

Instantly share code, notes, and snippets.

View mdjhnson's full-sized avatar

Matt mdjhnson

  • Campus Outreach SERVE
View GitHub Profile
@tanaikech
tanaikech / submit.md
Last active April 30, 2024 19:49
Adding Query Parameters to URL using Google Apps Script

Adding Query Parameters to URL using Google Apps Script

Updated on February 5, 2024

This is for adding the query parameters to the URL. These scripts can be also used for Javascript. When I created an endpoint with some query parameters, I had used the scripts of various patterns every time. Today, I prepared this sample script to unify them. If this is also useful for you, I'm glad.

Sample script (With V8 runtime):

String.prototype.addQuery = function (obj) {