49 lines
917 B
Python
49 lines
917 B
Python
name = "Get messages"
|
|
|
|
kind = "action"
|
|
|
|
showstatus = True
|
|
|
|
method = "GET"
|
|
|
|
#Used to resolve path for recursive handling. Path location must match the location of the recursiveset data from pullmessage operation
|
|
resolve = {
|
|
"path": ["messageheaders", "id"],
|
|
}
|
|
|
|
#To add resolution suffix, second item must be a dictionary. References the "path" library under resolved
|
|
path = [
|
|
"https://rentmasseur.com/api/v1/mailbox/",
|
|
{"resolved": "path"},
|
|
#{
|
|
# "output": "id",
|
|
# #"keys": [0, "id"]
|
|
# "keys": "id"
|
|
#}
|
|
]
|
|
|
|
headers = {
|
|
"Authorization": {
|
|
"output": "access_token",
|
|
"prefix": "Bearer ",
|
|
},
|
|
}
|
|
|
|
outputs = {
|
|
"messages": "messages",
|
|
"profile": "profileData",
|
|
}
|
|
|
|
select = {
|
|
"source": "messages",
|
|
"include": {
|
|
"key": "seen",
|
|
"value": False,
|
|
},
|
|
"exclude": {
|
|
"key": "senderId",
|
|
"value": 238302,
|
|
}
|
|
}
|
|
|