Benutzerinformationen abrufen
curl --request GET \
--url https://app.famulor.de/api/user/me \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.famulor.de/api/user/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.famulor.de/api/user/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.famulor.de/api/user/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.famulor.de/api/user/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"name": "Your Name",
"email": "example@example.de",
"total_balance": 100.67447094
}
Benutzerinformationen abrufen
Ruft die Informationen des authentifizierten Benutzers ab
GET
/
api
/
user
/
me
Benutzerinformationen abrufen
curl --request GET \
--url https://app.famulor.de/api/user/me \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.famulor.de/api/user/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.famulor.de/api/user/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.famulor.de/api/user/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.famulor.de/api/user/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"name": "Your Name",
"email": "example@example.de",
"total_balance": 100.67447094
}
Dieser Endpunkt gibt die Profilinformationen des aktuell authentifizierten Benutzers zurück, einschließlich des Kontoguthabens.
Antwort-Felder
string
Der vollständige Name des Benutzers
string
Die E-Mail-Adresse des Benutzers
number
Das aktuelle Gesamtguthaben des Benutzerkontos
Anwendungsfälle
Dieser Endpunkt ist nützlich für:- Authentifizierung überprüfen - Bestätigen, dass der API-Schlüssel gültig ist und dem erwarteten Benutzer gehört
- Kontoguthaben prüfen - Verfügbare Credits überwachen, bevor API-Aufrufe getätigt werden
- Benutzerinformationen anzeigen - Den aktuellen Benutzer in der Benutzeroberfläche deiner Anwendung anzeigen
{
"name": "Your Name",
"email": "example@example.de",
"total_balance": 100.67447094
}
Passende Seiten: Introduction und Authentication Guide und API Integration Examples.