43 lines
575 B
Python
43 lines
575 B
Python
import os
|
|
|
|
name = "Get message list"
|
|
|
|
kind = "action"
|
|
|
|
alias = "pullmessagelist"
|
|
|
|
showstatus = True
|
|
|
|
method = "GET"
|
|
|
|
path = "https://rentmasseur.com/api/v1/mailbox"
|
|
|
|
headers = {
|
|
"Authorization": {
|
|
"output": "access_token",
|
|
"prefix": "Bearer ",
|
|
},
|
|
}
|
|
|
|
select = {
|
|
"source": "emails",
|
|
"include": {
|
|
"key": {},
|
|
"value": {},
|
|
},
|
|
"exclude": {
|
|
"key": "unread",
|
|
"value": 0,
|
|
}
|
|
}
|
|
|
|
outputs = {
|
|
"emails": "emails"
|
|
}
|
|
|
|
loaddata = [
|
|
"access_token",
|
|
"refresh_token",
|
|
]
|
|
|
|
savepath = os.environ["TOKEN_STORE"] |