Could someone please explain a very basic yet critical part of the script from post #1?  
 - You must replace the placeholders YOUR_APP_TOKEN_HERE and YOUR_USER_KEY_HERE.