Files
rmmanager/plugins/rmass/actions/getrmassuseravatar.py
T

38 lines
766 B
Python

name = "Get User Avatar"
kind = "action"
alias = "getavatar"
showstatus = True
isrequest = True
method = "GET"
#Used to resolve path for recursive handling. Path location must match the location of the recursiveset data from pullmessage operation
resolve = {
"get": {
"avatar": ["messageheaders", "userCard", "userPhoto"],
},
"transform": {
"avatar": {
"/images/nophoto.jpg": "https://rentmasseur.com/images/nophoto.jpg",
},
},
}
#To add resolution suffix, second item must be a dictionary. References the "path" library under resolved
path = [
{"resolved": "avatar"},
]
headers = {
"Authorization": {
"output": "access_token",
"prefix": "Bearer ",
},
}
image = "useravatar"