Check if user exists
This API checks if a user exists or not . Usually this API is called before creating a new user. The client must send an empty XML post data.
Example API call
POST /lcapi?book=1&collection=1&target=admin&action=check_user&login_name=newuser
Parameters
| Parameter | Description |
|---|---|
target | admin |
action | check_user |
login_name | User's login name |
book | The id of the publication, an integer, such as 1. |
collection | The id of the collection, an integer, such as 1. |
XML post data
This API call requires an empty XML post data to be uploaded.
Returns
- On success
-
If the user exists
<RESULT> <EXISTS/> </RESULT> - On failure
-
If the user doesn't exist
<RESULT></RESULT>