I am trying to make a request to a server using PostMan, normally I have no problems using it, but sometimes it happens that in my code (JavaScript), I need to make a request which has an object in the body of this request and I do not know how to do it that PostMan accepts these types of values.
Letβs say that my code is something like this:
let objTract = {
MethodName: 'sendAPI',
params: {
url:'url:https://api.clashroyale.com/v1/players/%23QR8PPVRL',
token: Bearer tokenCode
}
};
const response = await fetch("https://esliceu.codiblau.com/clashRoyale.php", {
method: 'POST',
body: JSON.stringify(objTract),
headers: {
"Content-Type": "application/x-www-form-urlencoded"
}
});
How would it be to make a request of this kind with PostMan? Thank you!!