title: 415 coming back from requesting a token Spotify API
body: <p>I'm trying to receive a token from Spotify api. Unfortunately I keep on receiving 415. Could you help me and let me know what am I doing wrong?</p>
  
  <pre><code>const axios = require('axios');
  
  const getToken = (code) =&gt; {
      return axios({
          method: 'post',
          url:'https://accounts.spotify.com/api/token',
          form: {
              code,
              grant_type :'authorization_code',
              redirect_uri: process.env.SPOTIFY_REDIRECT
          },
          headers: {
              'Authorization': 'Basic ' + (new Buffer(process.env.SPOTIFY_ID + ':' + process.env.SPOTIFY_SECRET).toString('base64')),
              'Content-Type': 'application/json'
          }
      }).then(token =&gt; {
          return token;
      }).catch(e=&gt; {
          console.log(e);
          return e.response;
      });
  };
  
  module.exports = {
      getToken
  };
  </code></pre>