Authentication: Difference between revisions
Created page with "== Methods == === getApplicationToken === <code>getApplicationToken($applicationApiKey)</code> Parameters: * '''$applicationApiKey''' String Returns String. Returns app..." |
Marked this version for translation |
||
| (7 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. | ||
Returns application token | <!--T:14--> | ||
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 | |||
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. | ||
Returns token | <!--T:20--> | ||
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 | |||
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: | ||
* '''$companyLogin''' String | <!--T:24--> | ||
* '''$userLogin''' String | * '''$companyLogin''' String a company identifier (login) | ||
* '''$userPassword''' String | * '''$userLogin''' String user's login associated with company | ||
* '''$userPassword''' String user's password | |||
<!--T:25--> | |||
Returns String. | Returns String. | ||
Returns token | <!--T:26--> | ||
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 | |||
[[Catalogue|Catalogue API methods]]. | |||
</translate> | |||
<translate> | |||
==Constants== <!--T:27--> | |||
=== Error codes === <!--T:28--> | |||
<!--T:29--> | |||
See [[Errors handling]] for details. | |||
---- | <!--T:30--> | ||
* -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 | |||
</translate> | |||