Download a User's Face Image
Download the face image of a specific user.
Prerequisites
Administrator has set facial recognition as the authentication method.
Procedures
Get the download URL of a user's face image
- Request URL
-
GET {base_url}/services/openapi/v1.0/user/user_image/{memberId}
- Request parameters
-
Path parameters
Parameter Required Type Description memberId Yes Long User's member ID. Note: You can query the user's member ID using the Query Multiple Users interface.
- Response parameters
-
Parameter Type Description data Object <Details> The detailed information status String The result of the request. Success
Failed
requestId String The ID of the request, which can be used to quickly locate the request. - Details
-
Parameter Type Description imageDownloadUrl String The download link of the user's face image. expiredTime Integer The validity period of the download link (Unit: second).
- Example
- Request example
Get and decode the Base64 string of the user's face image
- Use HTTP
GET
method along with the download URL to get the Base64 string of the face image, as the following example shows:Tip: You can also directly open the URL in a browser, and a text file containing the Base64 string will be automatically downloaded into your PC.GET {download_link}
- Decode the Base64 string to obtain the user's face image.