system
November 19, 2020, 2:00pm
1
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”
}
system
November 19, 2020, 2:17pm
2
Redmine Admin wrote:
hi, you need to add /login to url as described here API documentation | SimplyBook.me Online Scheduling
system
November 19, 2020, 5:24pm
3
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.
system
November 19, 2020, 5:26pm
4
Hikmet Tüysüz wrote:
Hi, I already add to /login url to my post reqeust please check “POST /login HTTP/1.1”
system
November 19, 2020, 5:27pm
5
Redmine Admin wrote:
then it means you don’t have hikmet.tuysuz@xxx.com user
system
November 19, 2020, 5:27pm
6
Redmine Admin wrote:
you need to pass user login, not email
system
November 19, 2020, 6:14pm
7
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.
system
November 19, 2020, 6:18pm
8
Redmine Admin wrote:
please provide full raw http request, before make sure you are using correct password
system
November 19, 2020, 6:26pm
9
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”
}
system
November 20, 2020, 6:50am
11
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.
system
November 20, 2020, 7:14am
12
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
system
November 20, 2020, 7:37am
13
Hikmet Tüysüz wrote:
I updated user_login and password and it worked, thanks for interests. We can close this ticket.