[#349] API Call returns an error Invalid request

Migrated from Redmine #349 | Author: Shneor Cheshin
Status: Feedback | Priority: Normal | Created: 2019-03-04


Hi,
I am using postman for testing. Getting an error in the result.
Am I missing anything?

Method: POST
URL: https://user-api.simplybook.me/admin
Headers:
Content-Type: application/json
X-Token: Secret Key
X-Company-Login: Key
Body (from documwntation example):

{
“jsonrpc”: “2.0”,
“method”: “getEventList”,
“params”:,
“id”:1
}

Result:

{
“error”: {
“code”: -32600,
“message”: “Invalid request”,
“data”: null
},
“id”: “1”,
“jsonrpc”: “2.0”
}

Cheers!

Dmytro Bondarev wrote:

Please pass token and company login instead of secret key and key to these headers:
X-Token: Secret Key
X-Company-Login: Key

User/Admin API (Company administration service) authorization

Redmine Admin wrote:

X-Company-Login should be login of your company
X-Token is not secret key. You should call getToken method first please read more here API documentation | SimplyBook.me Online Scheduling

Shneor Cheshin wrote:

Redmine Admin wrote:

X-Company-Login should be login of your company
X-Token is not secret key. You should call getToken method first please read more here API documentation | SimplyBook.me Online Scheduling

Thanks for the info.
Can you please elaborate? What is company login?
cheers

Redmine Admin wrote:

company login is part of url before .simplybook.me (.secure.simplybook.me for admin interface)