title: how to get authorize code for adultwork using python
body: <p>Given the rest api instruction on the site:</p>
  <p><a href="https://developers.adultwork.com/Site/UnifiedLogin/AuthorizationCode" rel="nofollow noreferrer">https://developers.adultwork.com/Site/UnifiedLogin/AuthorizationCode</a></p>
  <p>Having tried a number of variants from the many available resources all of which throw 400 type errors (usually 404 or 405 error), would like to have a piece of code such as:</p>
  <pre><code>def get_access_token():
      url = 'https://api.adultwork.com' + '/OAuth/Authorize'
      data = {&quot;grant_type&quot;: &quot;client_credentials&quot;}
      auth=(cr.api_key, cr.api_secret)
  
      r = requests.get(url, data=data, auth=auth)
      print(r.status_code)
      return r
  </code></pre>
  <p>There appear to only be a few components, so presumably the above is a close guess.</p>
  <p>The credential strings <code>cr.api_key</code> and <code>cr.api_secret</code> are given to the user which presumably are sufficient for the above.</p>
  <p>So the question is how to implement this (in python) to get the access code ?
  An explanation would be most helpful too.</p>