[#1131] Access Denied

Migrated from Redmine #1131 | Author: Luis Solana
Status: New | Priority: Normal | Created: 2023-11-17


Good evening,

I have the following code:


var loginClient = new JSONRpcClient({
        'url': 'https://user-api.simplybook.it/login',
        'onerror': function (error) {
            alert(error);
        }
    });
    var token = loginClient.getUserToken(companyLogin, 'mail@mail.org', 'myPassword');
    var client = new JSONRpcClient({
        'url': 'https://user-api.simplybook.it/admin',
        'headers': {
            'X-Company-Login': companyLogin,
            'X-Token': token
        },
        'onerror': function (error) {
            alert(error);
        }
    });

And it throws me an user denied. The data is correct and it gives me a token.

Thanks for the support!

Luis Solana wrote:

Access denied, sorry. -32600

Redmine Admin wrote:

him you need to pass X-User-Token as described here API documentation | SimplyBook.me Online Scheduling