Closed sarbogast closed 10 years ago
Yes the map is for URL variables not parameters. The parameters are set in the body:
def url = "https://api.myfox.me/oauth2/token"
def resp = rest.post(url) {
auth clientId, clientSecret
grant_type = 'authorization_code'
code = params.code
}
I'm trying to use this plugin to replicate the following curl command:
But the following code has the server responding that grant_type is missing:
Am I doing something wrong or it the error coming from the server I'm connecting to?