This API endpoint, /en/api-client/community/get-user-profile
, allows you to retrieve user profiles from our community platform. It is designed for developers who need to integrate user data into their applications.
Usage
To use this endpoint, make a GET request to /en/api-client/community/get-user-profile
with the necessary parameters.
Parameters
user_id
: The ID of the user you want to retrieve the profile for.include_friends
: Optional. If set totrue
, includes the user's friends in the response.
Response
The response will be in JSON format and will include the following fields:
user
: The user's profile information.friends
: An array of friends of the user, ifinclude_friends
was set totrue
.
Example
{
"user": {
"id": "12345",
"name": "John Doe",
"email": "john.doe@example.com",
"profile_picture": "https://example.com/profile.jpg"
},
"friends": [
{
"id": "54321",
"name": "Jane Smith",
"email": "jane.smith@example.com",
"profile_picture": "https://example.com/profile.jpg"
}
]
}
Related Links
For more information about our API client, visit our API documentation.
[center]https://cloud-image.ullrai.com/q/user_profile/[/center]
[center]https://cloud-image.ullrai.com/q/api_usage/[/center]