OAuth SSO - Cannot get token
I'm trying to generate a token but I always get a "HTTP/1.1 400 Bad Request"
curl -v --data '' --request POST \
--url "https://oauth.wildapricot.org/auth/token?client_id=myapps&grant_type=authorization_code&code=bbd4170f875d16b6124e82e4a336f70&scope=contacts_me&redirect_uri=http%3A%2F%2Flocalhost%3A8080" \
--header 'Authorization: Basic aHBzY2cDp1OHR0NWU1OWpoc2Y1bmNrcjNvcjhyNnR0eHFhNng=' \
--header 'Content-Type: application/x-www-form-urlencoded'
--data '' is used to set "Content-Type: 0", if its not included I get a 413 error
Is there something wrong with my curl that i provided?