> For the complete documentation index, see [llms.txt](https://connector-api.orelc.ac/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://connector-api.orelc.ac/fonctionnalites/checkuser.md).

# checkUser

## Requête

Permet de vérifier les identifiants utilisateurs.

#### Endpoint

```
[Domain]/academy/api/v1/Dictionary/checkUser
```

#### Exemple

{% tabs %}
{% tab title="Javascript" %}

<pre class="language-javascript"><code class="lang-javascript">const endpoint = "[endpoint]";
const apiKey = "[myAPIKey]";
const username = "[username]"; 
const password = "[password]";

fetch(endpoint, {
    method: "POST", 
<strong>    headers: {
</strong>        "Authorization": apiKey,
        "username ": username,
        "password ": password 
    }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Erreur :", error));
</code></pre>

{% endtab %}

{% tab title="PHP" %}

```php
$endpoint = "[endpoint]";
$apiKey = "[myAPIKey]";
$username = "[username]"; 
$password = "[password]"; 

// Prepare data for POST request
$data = [
    "username" => $username,
    "password" => $password
];

# Prepare request headers
$options = [
    "http" => [
        "header"  => "Authorization: $apiKey\r\n" . 
                     "Content-type: application/x-www-form-urlencoded\r\n",
        "method"  => "POST",
        "content" => http_build_query($data)
    ]
];

// Send POST request and get response
$context  = stream_context_create($options);
$response = file_get_contents($endpoint, false, $context);

if ($response === FALSE) {
    echo "Erreur : Impossible de récupérer la réponse.";
} else {
    echo $response;
}
```

{% endtab %}

{% tab title="Python " %}

```python
import requests

endpoint = "[endpoint]"
api_key = "[myAPIKey]"
username = "[username]" 
password = "[password]" 

# Prepare data for POST request
data = {
    "username": username,
    "password": password
}

# Prepare request headers
headers = {
    "Authorization": api_key
}

# Send POST request and get response
response = requests.post(endpoint, headers=headers, data=data)
if response.status_code == 200:
    print(response.json())
else:
    print("Erreur :", response.text)
```

{% endtab %}
{% endtabs %}

### Réponse

```json
{
    "success": true,
    "message": "Identifiants valides"
}
```

### Description des champs

| success | boolean | true si les identifiants sont correctes, autrement false | false |
| ------- | ------- | -------------------------------------------------------- | ----- |
| message | string  | Message d'informations/erreurs                           |       |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://connector-api.orelc.ac/fonctionnalites/checkuser.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
