Changes

From SimplyBook.me

Authentication

1,059 bytes added, 16:29, 4 January 2016
no edit summary
Returns String.
Returns an application 's token by string for an application api . You should use this token to authenticate all calls of[[Company public service methods|Company public service API methods]] and [[Catalogue|Catalogue API methods]]. Toget application API keyplease contact SimplyBook.me support team.
Returns String.
Returns an application's token by string for a company login/api . You should use this token to authenticate all calls of[[Company public service methods|Company public service API methods]] and [[Catalogue|Catalogue API methods]]. Toget application API keyyou need to enable [[Plugins#API|API plugin]].
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 (session id) by string for certain user registered for company login, user login, user password. You should use this token toauthenticate all calls of [[Company administration service methods|Company administration service API methods]] and[[Catalogue|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 Plugin is enabled