import os name = "Get User Avatar" kind = "action" alias = "getavatar" allowaction = bool(os.environ.get("UPDATE_AVATARS", True)) 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"