Hi All, I'm trying to do a API requisition through EG but I have no success in my call. I've tested it in Postman and there it is working normally. I need passing 6 fields variables on Body, then I think that's need using the PUT, right? Below there is my example, using only one field on body: %let val = "SMS2";
/* Put the body of the JSON content in external file */
filename json_in temp;
data _null_;
file json_in;
put;
put "{";
put '"Tp_SMS":'"&val.";
put "}";
run;
proc http
url="https://xxxxxxxxxxxxxx/xxxxx/xxxx/xxxxx"
method="POST"
ct="application/x-www-form-urlencoded"
in=json_in
out=posta
headerout=hdrout;
headers
"Host"="xxxxxxx"
"Authorization"="bearer XXXXXXXXXXXXXX"
"Content-Type"="application/json"
"Content-Length"="xxxxxxx"
"CD_Login"="xxxxxxx";
Run; How can I solved it? How I should add others fields varsiables on body - using PUT? Important: If I use the "Datalines" than "PUT", with one field - I have success. Any help will be very appreciated. Tks, TF
... View more