No edit summary |
Marked this version for translation |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
== | <languages/> | ||
<translate> | |||
<!--T:1--> | |||
{{#seo: | |||
|title=Authentication - SimplyBook.me | |||
|description=Add authentication for secure access to your booking system. Protect client and business data. Learn more about this feature! | |||
|titlemode=append | |||
|keywords=faq, frequently asked questions, booking software, appointment system questions, appointments online, calendar software, booking system, booking calendar, scheduling software, online appointment scheduling, online scheduling, setup, setup help, support, help content | |||
}} | |||
</translate> | |||
== | <translate> | ||
== Methods == <!--T:2--> | |||
=== getServiceUrl === <!--T:3--> | |||
<!--T:4--> | |||
<code>getServiceUrl($companyLogin)</code> | |||
<!--T:5--> | |||
Parameters: | |||
<!--T:6--> | |||
* '''$companyLogin''' String | |||
<!--T:7--> | |||
Returns String. | |||
<!--T:8--> | |||
Returns API url for given company login | |||
</translate> | |||
---- | |||
<translate> | |||
=== getApplicationToken === <!--T:9--> | |||
<!--T:10--> | |||
<code>getApplicationToken($applicationApiKey)</code> | <code>getApplicationToken($applicationApiKey)</code> | ||
<!--T:11--> | |||
Parameters: | Parameters: | ||
<!--T:12--> | |||
* '''$applicationApiKey''' String | * '''$applicationApiKey''' String | ||
<!--T:13--> | |||
Returns String. | Returns String. | ||
<!--T:14--> | |||
Returns an application's token string for an application. You should use this token to authenticate all calls of | Returns an application's token string for an application. You should use this token to authenticate all calls of | ||
[[Company public service methods|Company public service API methods]] and [[Catalogue|Catalogue API methods]]. To | [[Company public service methods|Company public service API methods]] and [[Catalogue|Catalogue API methods]]. To | ||
get application API key please contact SimplyBook.me support team. | get application API key please contact SimplyBook.me support team. | ||
</translate> | |||
---- | ---- | ||
<translate> | |||
=== getToken === <!--T:15--> | |||
<!--T:16--> | |||
<code>getToken($companyLogin, $apiKey)</code> | <code>getToken($companyLogin, $apiKey)</code> | ||
<!--T:17--> | |||
Parameters: | Parameters: | ||
<!--T:18--> | |||
* '''$companyLogin''' String | * '''$companyLogin''' String | ||
* '''$apiKey''' String | * '''$apiKey''' String | ||
<!--T:19--> | |||
Returns String. | Returns String. | ||
<!--T:20--> | |||
Returns an application's token string for a company. You should use this token to authenticate all calls of | Returns an application's token string for a company. You should use this token to authenticate all calls of | ||
[[Company public service methods|Company public service API methods]] and [[Catalogue|Catalogue API methods]]. To | [[Company public service methods|Company public service API methods]] and [[Catalogue|Catalogue API methods]]. To | ||
get application API key you need to enable [[ | get application API key you need to enable [[Custom_Features#API|API Custom Feature]]. | ||
</translate> | |||
---- | ---- | ||
<translate> | |||
=== getUserToken === <!--T:21--> | |||
<!--T:22--> | |||
<code>getUserToken($companyLogin, $userLogin, $userPassword)</code> | <code>getUserToken($companyLogin, $userLogin, $userPassword)</code> | ||
<!--T:23--> | |||
Parameters: | Parameters: | ||
<!--T:24--> | |||
* '''$companyLogin''' String a company identifier (login) | * '''$companyLogin''' String a company identifier (login) | ||
* '''$userLogin''' String user's login associated with company | * '''$userLogin''' String user's login associated with company | ||
* '''$userPassword''' String user's password | * '''$userPassword''' String user's password | ||
<!--T:25--> | |||
Returns String. | Returns String. | ||
<!--T:26--> | |||
Returns an authentication token string for certain user registered for company. You should use this token to | Returns an authentication token string for certain user registered for company. You should use this token to | ||
authenticate all calls of [[Company administration service methods|Company administration service API methods]] and | authenticate all calls of [[Company administration service methods|Company administration service API methods]] and | ||
[[Catalogue|Catalogue API methods]]. | [[Catalogue|Catalogue API methods]]. | ||
</translate> | |||
<translate> | |||
==Constants== <!--T:27--> | |||
=== Error codes === <!--T:28--> | |||
=== Error codes === | |||
<!--T:29--> | |||
See [[Errors handling]] for details. | See [[Errors handling]] for details. | ||
<!--T:30--> | |||
* -33001 Company does not exist | * -33001 Company does not exist | ||
* -33002 Wrong API key | * -33002 Wrong API key | ||
* -33003 User with this login and password not found | * -33003 User with this login and password not found | ||
* -33004 User is blocked | * -33004 User is blocked | ||
* -33005 You are not allowed to use this application when HIPAA | * -33005 You are not allowed to use this application when HIPAA Custom Feature is enabled | ||
</translate> | |||
Latest revision as of 13:11, 15 May 2025
Methods
getServiceUrl
getServiceUrl($companyLogin)
Parameters:
- $companyLogin String
Returns String.
Returns API url for given company login
getApplicationToken
getApplicationToken($applicationApiKey)
Parameters:
- $applicationApiKey String
Returns String.
Returns an application's token string for an application. You should use this token to authenticate all calls of Company public service API methods and Catalogue API methods. To get application API key please contact SimplyBook.me support team.
getToken
getToken($companyLogin, $apiKey)
Parameters:
- $companyLogin String
- $apiKey String
Returns String.
Returns an application's token string for a company. You should use this token to authenticate all calls of Company public service API methods and Catalogue API methods. To get application API key you need to enable API Custom Feature.
getUserToken
getUserToken($companyLogin, $userLogin, $userPassword)
Parameters:
- $companyLogin String a company identifier (login)
- $userLogin String user's login associated with company
- $userPassword String user's password
Returns String.
Returns an authentication token string for certain user registered for company. You should use this token to authenticate all calls of Company administration service API methods and Catalogue API methods.
Constants
Error codes
See Errors handling for details.
- -33001 Company does not exist
- -33002 Wrong API key
- -33003 User with this login and password not found
- -33004 User is blocked
- -33005 You are not allowed to use this application when HIPAA Custom Feature is enabled