meta {
  name: get-token
  type: http
  seq: 14
}

post {
  url: https://accounts.spotify.com/api/token
  body: formUrlEncoded
  auth: bearer
}

headers {
  Content-Type: application/x-www-form-urlencoded
}

auth:bearer {
  token: {% base64 'encode', 'normal', '{{SPOTIFY_CLIENT_ID}}:{{SPOTIFY_CLIENT_SECRET}}' %}
}

body:form-urlencoded {
  grant_type: client_credentials
}
