title: How to get the code and jwt from SUUNTO API OAuth2?
body: <p>When I do this:</p>
  <p>curl -v <a href="https://cloudapi-oauth.suunto.com/oauth/token" rel="nofollow noreferrer">https://cloudapi-oauth.suunto.com/oauth/token</a> --user : -d grant_type=authorization_code -d redirect_uri= -d code=&lt;authorization code from step 4.4&gt;</p>
  <p>It works but I can not make it to work with the script below:</p>
  <pre><code>import requests
  
  header={
  &quot;Authorization&quot;:&quot;Basic Base64{user:pwd}&quot;
  }
  def jwtRequest():
      url = f'https://cloudapi-oauth.suunto.com/oauth/token?grant_type=authorization_code&amp;client_id=&amp;code='
      req = requests.post(url,header)
      return req
  </code></pre>
  <p>Step 4 ( <a href="https://apizone.suunto.com/how-to-start" rel="nofollow noreferrer">https://apizone.suunto.com/how-to-start</a> )
  Thank you in advance,</p>
  <p>PS. For security reasons I left out client_id and code.</p>