Added user avatar assignment

This commit is contained in:
Lyncoln
2026-10-18 00:17:19 -04:00
parent d58ea3112a
commit 4e1034d630
3 changed files with 120 additions and 0 deletions
@@ -0,0 +1,38 @@
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"],
},
"construct": {
"avatarpath": [
"https://rentmasseur.com",
{"resolved": "avatar"},
],
},
}
#To add resolution suffix, second item must be a dictionary. References the "path" library under resolved
path = [
{"resolved": "avatarpath"},
]
headers = {
"Authorization": {
"output": "access_token",
"prefix": "Bearer ",
},
}
image = "useravatar"