on 2017 Nov 21 4:10 PM - last edited on 2024 Feb 04 2:20 AM by postmig_api_4
Hello,
I'm trying to get the oauth token for one of my devices through postman. And while making a POST request to
with the body
{
"type": "oauth
}
I receive every time a raw html page with the title "not found".
Can you please help me with what exactly am I doing wrong in this request?
Thank you,
David
Hello David,
I see 2 suspicious points in your text:
1. Your URL ends with "/authentification" but has to be "/authentication" or "/authentication/token" (if only you do the token renewal). See documentation [1]
2. Your body is invalid JSON - oauth value is not closed with double quote.
Regards,
Anton
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The new url looks like this:
Where XXX is the account id, and YYY the device id.
and the new body:
{
"type": "oauth"
}
After changing the above mentioned, i receive
<html>
<head>
<title>Error report</title>
</head>
<body>
<h1>HTTP Status 415 - Unsupported Media Type</h1>
</body>
</html>
Please, see in documentation "Once an authentication object is deleted, a new object can be created by using a POST" which means you need to send a DELETE request first.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.