title: Getting Bad Request 400 while requesting for access token from refresh token Reddit API
body: <p>Initially i'm getting access token for reddit api by using <code>payload={'grant_type': 'client_credentials', 'duration': 'permanent'}</code> and this gives me <strong>access_token</strong> as well as <strong>refresh token</strong> and by using this refresh token, request for access_token but gives me Bad request  response.</p>
  <pre><code>
  url = &quot;https://www.reddit.com/api/v1/access_token&quot;
  
  payload={'grant_type': 'refresh_token',
  'refresh_token': '-_DdTnxTXtIVyoZPT9JzhUNq3bGRjRg'}
  files=[
  
  ]
  headers = {
    'User-Agent': 'winserp',
    'Authorization': 'Basic *************************************************************************'
  }
  
  response = requests.request(&quot;POST&quot;, url, headers=headers, data=payload, files=files)
  
  print(response.text)
  </code></pre>
  <p>Response: <code>{'message': 'Bad Request', 'error': 400}</code></p>