Added user avatar assignment
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user