POST in API Profile
I'm trying to use POST in an API profile for the first time and I'm failing ...
Here is the curl command I am trying to mimic:
curl -d "grant_type=refresh_token" https://app.teem.com/oauth/token/
This API actually expect more than 1 post parameter and this specific example is expected to return a Missing refresh parameter error. If I could that error in Matillion, I'd be making progress. However, the error I get in Matillion is unsupported_grant_type, which occurs when you don't send a grant_type at all.
My rsd looks like this:
<rsb:set attr="uri" value="https://app.teem.com/oauth/token/" />
<rsb:set attr="method" value="POST" />
I've also tried adding:
<rsb:set attr="ContentType" value="application/json; charset=UTF-8" />
but that made no difference.
Can you suggest why my post is not working?