Update doc

This commit is contained in:
Laurent Destailleur 2021-09-13 01:22:53 +02:00
parent f8b1e4d482
commit 6fd191b01a

View File

@ -44,8 +44,9 @@ class Login
* Login * Login
* *
* Request the API token for a couple username / password. * Request the API token for a couple username / password.
* Using method POST is recommanded for security reasons (method GET is often logged by default by web servers with parameters so with login and pass into server log file). * WARNING: You should NEVER use this API, like you should never use the similare API that uses the POST method. This will expose your password.
* Both methods are provided for developer conveniance. Best is to not use at all the login API method and enter directly the "DOLAPIKEY" into field at the top right of page. Note: The API token (DOLAPIKEY) can be found/set on the user page. * To use the APIs, you should instead set an API token to the user you want to allow to use API (This API token called DOLAPIKEY can be found/set on the user page) and use this token as credential for any API call.
* From the API explorer, you can enter directly the "DOLAPIKEY" into the field at the top right of the page to get access to any allowed APIs.
* *
* @param string $login User login * @param string $login User login
* @param string $password User password * @param string $password User password
@ -67,8 +68,9 @@ class Login
* Login * Login
* *
* Request the API token for a couple username / password. * Request the API token for a couple username / password.
* Using method POST is recommanded for security reasons (method GET is often logged by default by web servers with parameters so with login and pass into server log file). * WARNING: You should NEVER use this API, like you should never use the similare API that uses the POST method. This will expose your password.
* Both methods are provided for developer conveniance. Best is to not use at all the login API method and enter directly the "DOLAPIKEY" into field at the top right of page. Note: The API token (DOLAPIKEY) can be found/set on the user page. * To use the APIs, you should instead set an API token to the user you want to allow to use API (This API token called DOLAPIKEY can be found/set on the user page) and use this token as credential for any API call.
* From the API explorer, you can enter directly the "DOLAPIKEY" into the field at the top right of the page to get access to any allowed APIs.
* *
* @param string $login User login * @param string $login User login
* @param string $password User password * @param string $password User password