This API endpoint allows you to retrieve user information. It is accessible via the /en/api/user/get
path.
Endpoint Details
- URL:
/en/api/user/get
- Method:
GET
- Authentication: Basic Auth or OAuth 2.0
Request Parameters
user_id
: (required) The unique identifier for the user.access_token
: (optional) An access token for OAuth 2.0 authentication.
Response
A successful response will return a JSON object with user information. If the user is not found, the response will indicate an error.
{
"status": "success",
"data": {
"id": "12345",
"name": "John Doe",
"email": "john.doe@example.com",
"age": 30
}
}
Error Response
If the request is invalid, the response will contain an error message.
{
"status": "error",
"message": "User not found"
}
Usage Example
To retrieve information about a user, send a GET request to /en/api/user/get
with the appropriate parameters.
GET /en/api/user/get?user_id=12345
More Information
For more details on API usage, please refer to our API documentation.
Related Resources
**Note:** The above images are just placeholders. Replace `<关键词>` with the actual keyword for the image you want to insert.
```html
<center><img src="https://cloud-image.ullrai.com/q/user_info/" alt="user_info"/></center>