Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 83135

Got a working curl-call. How to make a RESTcall do the same.

$
0
0
Following the REST tutorial, I found that spotify's searchAPI now needs authentication. I have a working curl-call "curl -X "POST" -H "Authorization: Basic " -d grant_type=client_credentials https://accounts.spotify.com/api/token" which is giving me the access_token that I need. But I want Mendix to do the same, but in a RESTcall-action. Having set everything as I think it should be, the action fails with "400 Bad request"  See the microflow in this modelshare for the action that fails: Call REST for access_token Can anyone tell me what is wrong? The Action looks like this: with HTTP Headers: "Authorization" : "'Basic '" and Request: "grant_type=client_credentials"

Viewing all articles
Browse latest Browse all 83135

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>