Skip to content

Instantly share code, notes, and snippets.

View Khnaz35's full-sized avatar
🤪
Need help with some free projects

Ali Khnaz35

🤪
Need help with some free projects
  • Malaysia
  • 12:49 (UTC +08:00)
View GitHub Profile
@tanaikech
tanaikech / submit.md
Last active September 9, 2024 14:06
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) {