Example API Call- Top Reddit post to AutoHotkey subreddit

As we mentioned in our webservice / API webinar most APIs require Authentication.   In this example I noticed the number of records being returned by the API call was not nearly as many as when I did the same call with my browser  (I think this is because I didn’t bother to use my secret/token for oAuth2.)

I decided to use the developer tools in Chrome to see what headers were being sent to reddit.   Once I included the cookie header (data borrowed from my browser) I was returning a ton of data!  I also demonstrated the use of sXML_Pretty function by VxE to re-structure the XML to be “pretty” for humans.

Here is the video where I document the Example API Call and show how to use the Chrome Developer tools

Example Webservice / API call- Top post on AutoHotkey reddit

Comments are closed