64 lines
923 B
Python
64 lines
923 B
Python
import os
|
|
|
|
|
|
name = "Get message"
|
|
|
|
kind = "action"
|
|
|
|
#id = "getmessage"
|
|
|
|
showstatus = True
|
|
|
|
method = "GET"
|
|
|
|
resolve = {
|
|
"targetkeys": ["id"],
|
|
"label": "path",
|
|
}
|
|
|
|
path = [
|
|
"https://rentmasseur.com/api/v1/mailbox/",
|
|
{"suffix": "path"}
|
|
#{
|
|
# "output": "id",
|
|
# #"keys": [0, "id"]
|
|
# "keys": "id"
|
|
#}
|
|
]
|
|
|
|
#path = os.path.join(baseurl.messageid)
|
|
|
|
headers = {
|
|
"Authorization": {
|
|
"output": "access_token",
|
|
"prefix": "Bearer ",
|
|
},
|
|
}
|
|
|
|
recursive = {
|
|
"source": "emails",
|
|
#Transformation target. dynamic target to be resolved in each iteration
|
|
"target": "id"
|
|
}
|
|
|
|
|
|
outputs = {
|
|
"message": "messages",
|
|
"profile": "profileData",
|
|
}
|
|
|
|
select = {
|
|
"source": "message",
|
|
"include": {
|
|
"key": "seen",
|
|
"value": False,
|
|
},
|
|
"exclude": {
|
|
"key": "senderId",
|
|
"value": 238302,
|
|
}
|
|
}
|
|
#prints = {
|
|
# "message": "messages"
|
|
#}
|