[#170] Authentication through Postman failes

Migrated from Redmine #170 | Author: Rahul Mohanachandran
Status: Closed | Priority: Normal | Created: 2018-05-27


Hi,

I am exploring your API to see whether it will fit our business needs using Postman. But when I am trying to authenticate it is failing, Can you please help me with this?

POST /login HTTP/1.1
Host: user-api.simplybook.me
X-Company-Login: testfornow
X-Token: xxxxxxx
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
Cache-Control: no-cache
Postman-Token: 650b3b6c-56af-f5c8-c579-977e93b22f25

The actual token is removed for security reasons

Rahul Mohanachandran wrote:

Rahul Mohanachandran wrote:

Hi,

I am exploring your API to see whether it will fit our business needs using Postman. But when I am trying to authenticate it is failing, Can you please help me with this?

POST /login HTTP/1.1
Host: user-api.simplybook.me
X-Company-Login: testfornow
X-Token: xxxxxxx
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
Cache-Control: no-cache
Postman-Token: 650b3b6c-56af-f5c8-c579-977e93b22f25

The actual token is removed for security reasons

Following is the response I am recieving.

{
“error”: {
“code”: -32600,
“message”: “Invalid Request”,
“data”: null
},
“id”: null
}

Rahul Mohanachandran wrote:

It was a user error your API Explorer was helpful, So please close this issue.