Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 1963

Rest Debugger, auth2

$
0
0

I have a rest request to do an oauth2 and in the rest debugger i finally got it to work. However after copying the generated components into a new vcl app when i execute it it returns that the content is no parsable, in unexpected format.  I;ve tried dozens of things and just cant get anywhere.

Here is the code that the Rest Debugger from ave reuest.  If you load this in the debugger it will work, then generate components, no worky.

thank you for any insights.

============================================================

{"method":"POST","url":"https://mapi.talech.com/o/oauth2/token","resource":"","contenttype":"application/json","auth":{"method":"NONE","username":"","passwordkey":"","password":"","passwordkey":"","clientid":"","clientsecret":"","authcode":"","accesstoken":"","accesstokensecret":"","requesttoken":"","requesttokensecret":"","refreshtoken":"","signaturemethod":"","responsetype":"","endpointauth":"","endpointaccesstoken":"","endpointrequesttoken":"","endpointredirect":"","authscope":""},"parameters":[],"body":"ew0KICAgImdyYW50X3R5cGUiOiJyZWZyZXNoX3Rva2VuIiwNCiAgICJjbGllbnRfaWQiOiJiY2xlbm5leUBiZXZjaGVrLmNvbSIsDQogICAiY2xpZW50X3NlY3JldCI6ImQ1NmI5MzNiIiwNCiAgICJyZWZyZXNoX3Rva2VuIjoiNTI0NDM0OTIvbWc1SUpFQzVUaTdmb2hhRU5ERWswbEFzIg0KfQ=="}

 

==============================================================


Viewing all articles
Browse latest Browse all 1963

Trending Articles



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