title: Retrieving temporary code from Add to Slack button
body: <p>I'm stalled midway through the Slack oauth process and could use some help. I have the Add to Slack button added to my website, and the next step according to the documentation is to retrieve a temporary code:</p>
  
  <blockquote>
    <p>If the user authorizes your app, Slack will redirect back to your specified redirect_uri with a temporary code in a code GET parameter</p>
  </blockquote>
  
  <p>This code is need for the call to oauth.access, which will return the token I need. The Add to Slack button works as intended and sends me to a URL containing the code, but I can't figure out how to programmatically retrieve it using Python 3.5. I've been experimenting with the urllib library (<a href="https://docs.python.org/3/library/urllib.request.html#urllib.request.HTTPRedirectHandler" rel="nofollow">https://docs.python.org/3/library/urllib.request.html#urllib.request.HTTPRedirectHandler</a>) as well as the requests library.  </p>
  
  <p>The root of my problem is that I need to retrieve a code from an unknown URL. Here's a link to the documentation I'm reading: <a href="https://api.slack.com/docs/oauth" rel="nofollow">https://api.slack.com/docs/oauth</a></p>
  
  <p>Any help or guidance is much appreciated!</p>