title: Trying to get images from Reddit using Javascript?
body: <p>For this particular task, I have decided that it would be best if I were to use the Reddit API. Looking at the different wrappers available, I chose to use <a href="https://github.com/not-an-aardvark/snoowrap" rel="nofollow noreferrer">snoowrap</a>. The examples are pretty clear, and I want to use something like this to get through authentication: </p>
  
  <pre><code>const snoowrap = require('snoowrap');
  
  const otherRequester = new snoowrap({
      userAgent: 'put your user-agent string here',
      clientId: 'put your client id here',
      clientSecret: 'put your client secret here',
      username: 'put your username here',
      password: 'put your password here'
  });
  </code></pre>
  
  <p>I can find the important information such as <code>clientID</code> and <code>clientSecret</code> on the <a href="https://www.reddit.com/prefs/apps/" rel="nofollow noreferrer">Reddit Apps (Preferences Section)</a>. What confuses me, is the <code>userAgent</code> input. What exactly am I supposed to input here? </p>
  
  <p>I thought I could go to <a href="https://github.com/not-an-aardvark/reddit-oauth-helper" rel="nofollow noreferrer">Reddit OAuth Helper</a> created by the same user. However, at the end of the process, I seem to get a <em>Reddit Bad Request</em>. </p>