[#608] getUserToken for Enterprise

Migrated from Redmine #608 | Author: Hikmet Tüysüz
Status: Closed | Priority: Normal | Created: 2020-11-19


Hi,

I am trying to getUserToken for Enterprise but when i try with my sub account credentials, i am getting an this error.

Request:

POST /login HTTP/1.1
Host: user-api.enterpriseappointments.com
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: e7a1fcda-2ed8-c55a-f112-9e4c18ecdcc2

{“jsonrpc”:“2.0”,“method”:“getUserToken”,“params”:[“dxbfestivalcity","hikmet.tuysuz@xxx.com”,“passowrd”],“id”:1}

Response :

{
“error”: {
“code”: -32000,
“message”: “User with this login and password not found”,
“data”:
},
“id”: “1”,
“jsonrpc”: “2.0”
}

Redmine Admin wrote:

hi, you need to add /login to url as described here API documentation | SimplyBook.me Online Scheduling

Hikmet Tüysüz wrote:

Redmine Admin wrote:

hi, you need to add /login to url as described here API documentation | SimplyBook.me Online Scheduling

Hi, I already add to /login url my post please check “POST /login HTTP/1.1”

Also, i attached screenshot to files.

Hikmet Tüysüz wrote:

Hi, I already add to /login url to my post reqeust please check “POST /login HTTP/1.1”

Redmine Admin wrote:

then it means you don’t have hikmet.tuysuz@xxx.com user

Redmine Admin wrote:

you need to pass user login, not email

Hikmet Tüysüz wrote:

Redmine Admin wrote:

you need to pass user login, not email

I am using that credantials and also tried user login(FestivalCity_Can), it is not still working please check the image.

Redmine Admin wrote:

please provide full raw http request, before make sure you are using correct password

Hikmet Tüysüz wrote:

I can get getToken with API KEY with same http request its working fine. But i need to use getUserToken. Which credenatials are true for getUserToken?

Request:

POST /login HTTP/1.1
Host: user-api.enterpriseappointments.com
Content-Type: application/json; charset=UTF-8
Cache-Control: no-cache
Postman-Token: c8478cba-1941-f506-0729-20466f904700

{“jsonrpc”:“2.0”,“method”:“getToken”,“params”:[“dxbfestivalcity”,“API_KEY”],“id”:1}

Response:
{
“result”: “TOKEN”,
“id”: “1”,
“jsonrpc”: “2.0”
}

Hikmet Tüysüz wrote:

Any update?

(Short original content)

Dmytro Bondarev wrote:

{“jsonrpc”:“2.0”,“method”:“getUserToken”,“params”:[“{{company_login}}”,“{{user_login}}”, “{{user_password}}”],“id”:1}
Where
{{company_login}} - is your company login (it seems dxbfestivalcity)
{{user_login}} - is your user login (not email).
{{user_password}} - is your user password.

Please make sure that you are using correct login and password.

Hikmet Tüysüz wrote:

Dmitry Bondarev wrote:

{“jsonrpc”:“2.0”,“method”:“getUserToken”,“params”:[“{{company_login}}”,“{{user_login}}”, “{{user_password}}”],“id”:1}
Where
{{company_login}} - is your company login (it seems dxbfestivalcity)
{{user_login}} - is your user login (not email).
{{user_password}} - is your user password.

Please make sure that you are using correct login and password.

Hi, I already tried with user_login: FestivalCity_Can with password. Is it not user_login? I attached image. Please check.

Regards

Hikmet Tüysüz wrote:

I updated user_login and password and it worked, thanks for interests. We can close this ticket.