Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Last active October 6, 2021 16:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoeGlines/34378ae17245851d4732c0ff0fd0f188 to your computer and use it in GitHub Desktop.
Save JoeGlines/34378ae17245851d4732c0ff0fd0f188 to your computer and use it in GitHub Desktop.
A function to build query strings for API calls
;*******************************************************
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey Udemy courses. They're structured in a way to make learning AHK EASY
; Right now you can get a coupon code here: https://the-Automator.com/Learn
;*******************************************************
QueryString_Builder(x){
for a,b in x
String.=(A_Index=1?"?":"&") a "=" b
return String
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment