Working list selection filter
This commit is contained in:
@@ -1 +1 @@
|
||||
from . import login, getcsrf, refresh_tokens, checkavailable, setavailable, setunavailable, setnotset
|
||||
from . import login, getcsrf, refresh_tokens, checkavailable, setavailable, setunavailable, setnotset, getmessage
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,63 @@
|
||||
import os
|
||||
|
||||
name = "Get message"
|
||||
|
||||
kind = "action"
|
||||
|
||||
#id = "getmessage"
|
||||
|
||||
showstatus = True
|
||||
|
||||
#skipstep = {
|
||||
# "checkavailable": "validTo >= 3600"
|
||||
#}
|
||||
|
||||
#availabletime = int(os.environ.get("AVAILABLE_DURATION",3))
|
||||
|
||||
#duration = availabletime - 1
|
||||
|
||||
#keys = [
|
||||
# {
|
||||
# "keytitle": "option",
|
||||
# "keyvalue": 1,
|
||||
# },
|
||||
# {
|
||||
# "keytitle": "duration",
|
||||
# "keyvalue": duration,
|
||||
# },
|
||||
#]
|
||||
|
||||
method = "GET"
|
||||
|
||||
#messageid = 49971192
|
||||
|
||||
#path = f"https://rentmasseur.com/api/v1/mailbox/{messageid}"
|
||||
#path = [
|
||||
# "https://rentmasseur.com/api/v1/mailbox/",
|
||||
# {"output": "[messageid][0].id"}
|
||||
#]
|
||||
|
||||
path = [
|
||||
"https://rentmasseur.com/api/v1/mailbox/",
|
||||
{
|
||||
"output": "messageid",
|
||||
"keys": [0, "id"]
|
||||
}
|
||||
]
|
||||
|
||||
#path = os.path.join(baseurl.messageid)
|
||||
|
||||
headers = {
|
||||
"Authorization": {
|
||||
"output": "access_token",
|
||||
"prefix": "Bearer ",
|
||||
},
|
||||
}
|
||||
|
||||
outputs = {
|
||||
"conversation": "messages"
|
||||
}
|
||||
|
||||
#prints = {
|
||||
# "message": "messages"
|
||||
#}
|
||||
@@ -0,0 +1,52 @@
|
||||
name = "Get message list"
|
||||
|
||||
kind = "action"
|
||||
|
||||
id = "getmessagelist"
|
||||
|
||||
showstatus = True
|
||||
|
||||
#skipstep = {
|
||||
# "checkavailable": "validTo >= 3600"
|
||||
#}
|
||||
|
||||
#availabletime = int(os.environ.get("AVAILABLE_DURATION",3))
|
||||
|
||||
#duration = availabletime - 1
|
||||
|
||||
#keys = [
|
||||
# {
|
||||
# "keytitle": "option",
|
||||
# "keyvalue": 1,
|
||||
# },
|
||||
# {
|
||||
# "keytitle": "duration",
|
||||
# "keyvalue": duration,
|
||||
# },
|
||||
#]
|
||||
|
||||
method = "GET"
|
||||
|
||||
#path = "https://rentmasseur.com/api/v1/mailbox?page=1&folder=1&sort=1"
|
||||
path = "https://rentmasseur.com/api/v1/mailbox"
|
||||
headers = {
|
||||
"Authorization": {
|
||||
"output": "access_token",
|
||||
"prefix": "Bearer ",
|
||||
},
|
||||
}
|
||||
|
||||
select = {
|
||||
"source": "emails",
|
||||
"selectmethod": "exclude",
|
||||
"key": "unread",
|
||||
"value": 0,
|
||||
}
|
||||
|
||||
outputs = {
|
||||
"emails": "emails"
|
||||
}
|
||||
|
||||
#prints = {
|
||||
# "messageid": "id"
|
||||
#}
|
||||
Reference in New Issue
Block a user