[#938] Cannot Get Token

Migrated from Redmine #938 | Author: Jerome Bell
Status: New | Priority: Normal | Created: 2022-10-06


I cannot get a token

companyLogin => stjude
apiKey => f7e03db6a873279bd2dd89f0b21c450a5682f575bc2d4fd4023a933bb639d58b

I keep getting a “Wrong API key” message. Please advise.

Redmine Admin wrote:

maybe you are calling wrong API endpoint? - what is your booking page url and which API endpoint you are calling?

Jerome Bell wrote:

I am using [[https://user-api.simplybook.me/login]]. I’m sure this is correct because the call succeeds when I use the demo account credentials mib/f43618e37b82004066d60db3431f4a06392599a6cfcafa8268bf25becc0ec7d7.

Redmine Admin wrote:

but on which server your company is located (what is your booking site url)?

Jerome Bell wrote:

I believe the booking site URL is Appointment booking service and free online booking service

Redmine Admin wrote:

then your API endpoint must be user-api.simplybook.us

Jerome Bell wrote:

Ok, that worked. Thanks!

Jerome Bell wrote:

Why does https://user-api.simplybook.me/login with body

{
“jsonrpc” : “2.0”,
“id”: 1,
“method” : “getServiceUrl”,
“params” : [
“stjude”
]
}

return “user-api.simplybook.me”? Shouldn’t the URL have a “.us” suffix?

Redmine Admin wrote:

hi, your API endpoint must be always with .us not .me