Example Webservice / API call- Yahoo Query Language with AutoHotkey

Friendly robot with a green map-pin chest icon, a plus sign, and a cloud labeled REST API, representing an AutoHotkey script calling web servicesA close view of a laptop keyboard and touchpad with a small blue USB port and cables visible at the edge, shown in a tech blog post
While we touched on this API in our API Webinar, I wanted to review a bit more and demonstrate the Yahoo Console which can greatly aide you in developing your API calls.  Below is the code I demonstrate in the video.  The Yahoo API is pretty straight-forward and, for many calls, you don’t need a secure Token or ID!
If you’re new to API calls, be sure to get our API Syntax Writer


Video demonstrating Example API call to Yahoo

 

Automate Unicode character encoding for HTML

Unicode character encoding

Group of coworkers seated around a table in a bright office, talking together with a green reusable water bottle in front of themOur CMS does not support Unicode text thus when we need to search-replace for characters like the ™ and © symbols. This takes a fair amount of time and is easy to miss so I wrote a script in AutoHotKey to automatically handle the Unicode character encoding.

Now I can highlight the word and click a button and  Whamo!  Instant replacement with HTML equivalents!  No more trying to scan text and find illegal characters.

A black AutoHotkey branded water bottle on a desk beside a laptop, with a person reading a newspaper in the backgroundUnicode character encoding

Here is the AutoHotKey code I use.  My code first grabs the highlighted text and copies it to the clipboard, where it manipulates it, then sends it back to the active program I was working in. No more need for Unicode character encoding!