Help translating curl command to HTTP.jl

Sorry I know very little about authentication etc. I am trying the following but still getting a 400 error:

HTTP.request(
           "POST", 
           "https://$user:$pw@accounts.spotify.com/api/token",
           [],"grant_type=client_credentials",
           status_exception=false
       )

where user and pw are my spotify user name an password, respectively. Am I misunderstanding this?

EDIT: Also tried with clientid and clientsecret without any luck.