system
September 12, 2024, 1:05pm
1
Migrated from Redmine #1279 | Author: Matteo Frigerio
Status: New | Priority: Immediate, there is BUG! | Created: 2024-09-12
When I perform
curl --location 'https://user-api.simplybook.me/login' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "getUserToken",
"params": [
"mycompany",
"myuser",
"mypassword"
],
"id": 1
}'
I obtain either
{
"error": {
"code": -32000,
"message": "Company does not exist",
"data": []
},
"id": "1",
"jsonrpc": "2.0"
}
or
{
"error": {
"code": -32000,
"message": "Unexpected error",
"data": null
},
"id": "1",
"jsonrpc": "2.0"
}
What am I doing wrong?
system
September 12, 2024, 1:06pm
2
Redmine Admin wrote:
hi, what is your company booking site url?
system
September 12, 2024, 1:35pm
3
Matteo Frigerio wrote:
Redmine Admin wrote:
hi, what is your company booking site url?
We have few of them: unibocconi.secure.simplybook.pro, provaub.secure.simplybook.pro, bbooking.secure.simplybook.pro (the firs element is the one I use as company during the api requests).
system
September 12, 2024, 1:37pm
4
Redmine Admin wrote:
you need to use https://user-api.simplybook.pro API endpoint then
system
September 12, 2024, 1:39pm
5
Matteo Frigerio wrote:
Redmine Admin wrote:
you need to use https://user-api.simplybook.pro API endpoint then
Thabk you very much; what about the ticket I opened at Bug #1276: Detailed report not working in new version of the APIs - API - Simplybook.me support for developers ? any progress on that?