Get given user's profile pciture, can be used as src for img tag directly, since it outputs the raw picture instead of standard Cloudreve's JSON response structure.
Request
Path Params
user_id
stringÂ
required
ID of the user.
Example:
lpua
Query Params
nocache
booleanÂ
optional
Force Cache-Control header to be nocache to disable cache.
Example:
true
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET '/user/avatar/lpua?nocache=true'
Responses
🟢200User have uploaded profile picture
image/png
The response body is the content of the image file.