[#237] Authorization with API Issue

Migrated from Redmine #237 | Author: Abid Rasheed
Status: New | Priority: High, I’m very impatient | Created: 2018-09-17


Hi,

We are using enterprise simply book and facing the issue of connecting API.

We are using Authorization from the server side code (php) and facing error
“Message: Request error: User with this login and password not found”

Code:
$loginClient = new JsonRpcClient(‘https://user-api.simplybook.me’ . ‘/login/’);
$token = $loginClient->getUserToken(YOUR_COMPANY_LOGIN, YOUR_USER_LOGIN, YOUR_USER_PASSWORD);

Also tried:
$loginClient = new JsonRpcClient(‘https://user-api.simplybook.me’ . ‘/login/’);
$token = $loginClient->getToken(YOUR_COMPANY_LOGIN, YOUR_API_KEY);

Credentials Simply book:
Company Name: belimobilgue.co.id
username: dataapp

Thanx

Redmine Admin wrote:

company name is your account login, not domain.
Please provide your admin interface url if you have troubles to get company login

Abid Rasheed wrote:

Hi,

Here is our admin interface
https://belimobilgue.secure.fcgnew.enterprisebookings.com/v2/

We have tried with
$token = $loginClient->getUserToken(belimobilgue, dataapp , YOUR_USER_PASSWORD);

and getting the error

Message: Request error: User with this login and password not found

This is the same login and password we use to log into
https://belimobilgue.secure.fcgnew.enterprisebookings.com/v2/
which works fine.

Please, can you check if the account is enabled for API access? We need to fetch the booking data to be used in external app.

Redmine Admin wrote:

I know fcg using our API already and have no problems to login.

Company login is belimobilgue
Api endpoint is https://user-api.fcgnew.enterprisebookings.com/