title: How to use the watchlist ID to access messages via the Stocktwits API?
body: <p>I am trying to write a python script that collects messages from Stocktwits.</p>
  <p>I managed to successfully access the API, with</p>
  <pre><code>params = {
      'client_id':'my_consumer_key_here',
      'response_type':'code',
      'redirect_uri':'https://api.stocktwits.com/api/2/oauth/authorize',
      'scope':['read','watch_lists'],
      'prompt':1,
  }
  
  r = requests.get('https://api.stocktwits.com/api/2/oauth/authorize',params)
  r.status_code # 200
  </code></pre>
  <p>The messages should be accessed via a watchlist (which I created on my account), like this</p>
  <pre><code>r = requests.get('https://api.stocktwits.com/api/2/streams/watchlist/&lt;watchlist_id&gt;.json',params)
  </code></pre>
  <p>To get at the watchlist-id, which I couldn't find on my account, I tried:</p>
  <pre><code>r = requests.get('https://api.stocktwits.com/api/2/watchlists.json',params)
  r.status_code # 401
  </code></pre>
  <p>This should list the watchlists and their IDs. The '401' indicates that authorization for some reason doesn't work here the same way as above.</p>
  <p>I changed the redirect_uri to 'https://api.stocktwits.com/api/2/watchlists.json' as well, frankly I'm not sure what it's good for.</p>
  <p>The problem is likely that the authorization process is geared towards having many possible users accessing my app and via my app the API. What I want to do is much simpler.</p>
  <p>I have never worked with an API before and most of the documentation is pretty opaque to me. So my question is whether I'm doing something obviously wrong and how I should proceed to get the watchlist_id and retrieve the messages.</p>