Dino Ganas wrote:
< POST /admin/auth HTTP/1.1
< Host: user-api-v2.simplybook.me
< User-Agent: python-requests/2.24.0
< Accept-Encoding: gzip, deflate
< Accept: /
< Connection: keep-alive
< Content-Type: application/json
< Content-Length: 86
<
< {“company”: “ashleyhomestoreappointments”, “login”: “admin”, “password”: “FDETeam123”}
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 04 May 2021 17:56:54 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 316
Connection: keep-alive
Keep-Alive: timeout=20
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, PUT, DELETE, GET, OPTIONS
Access-Control-Allow-Headers: content-type, x-company-login, x-token, x-requested-with
X-XSS-Protection: 1; mode=block
{“token”:“e4219d21a8177d88fad5fdb5f7a0209b21302f211d679924316dc9606f04afbe”,“company”:“ashleyhomestoreappointments”,“login”:“admin”,“refresh_token”:“6b2220994fbc7c9ac47e5f07e4b8fbc76994d35cc88a12b2e0be3094d35c347b”,“domain”:“simplybook.me”,“require2fa”:false,“allowed2fa_providers”:,“auth_session_id”:“”,“id”:null}
< GET /admin/bookings HTTP/1.1
< Host: user-api-v2.simplybook.pro
< User-Agent: python-requests/2.24.0
< Accept-Encoding: gzip, deflate
< Accept: /
< Connection: keep-alive
< Content-Type: application/json
< Content-Length: 129
<
< {“X-Company-Login”: “ashleyhomestoreappointments”, “X-Token”: “e4219d21a8177d88fad5fdb5f7a0209b21302f211d679924316dc9606f04afbe”}
HTTP/1.1 401 Unauthorized
Server: nginx
Date: Tue, 04 May 2021 17:56:54 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 65
Connection: keep-alive
Keep-Alive: timeout=20
Set-Cookie: sb_line_token_user-api-v2=1620151014%7CbMOVaLQ1AzpQMqDFWbnSJA%3D%3D%7C84d471206b056692e43a9c3a951cead01816a1ce; path=/; secure; HttpOnly; SameSite=none
Set-Cookie: sb_token_user-api-v2=1620151014%7CNdrNFBeNKiW5xf1sLBhdJg%3D%3D%7Cd868a3bc8e84319fe31185b51aaa76c9e5fafbdd; path=/; secure; HttpOnly; SameSite=none
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, PUT, DELETE, GET, OPTIONS
Access-Control-Allow-Headers: content-type, x-company-login, x-token, x-requested-with
{“code”:401,“message”:“Unauthorized”,“data”:,“message_data”:}