add workflow 市场易API联系人,dev
This commit is contained in:
parent
e3863e31ab
commit
3610eac55c
|
@ -48,7 +48,7 @@ def get_token():
|
||||||
def get_contact_ids(token):
|
def get_contact_ids(token):
|
||||||
url = "https://open.cloud.custouch.com/platform/cdp/contact/batch"
|
url = "https://open.cloud.custouch.com/platform/cdp/contact/batch"
|
||||||
params = {
|
params = {
|
||||||
'start': formatted2_previous_hour(720),
|
'start': formatted2_previous_hour(1440),
|
||||||
'end': formatted2_previous_hour(0),
|
'end': formatted2_previous_hour(0),
|
||||||
'by':'CreatedAt'
|
'by':'CreatedAt'
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ def get_token():
|
||||||
def get_contact_ids(token):
|
def get_contact_ids(token):
|
||||||
url = "https://open.cloud.custouch.com/platform/cdp/contact/batch"
|
url = "https://open.cloud.custouch.com/platform/cdp/contact/batch"
|
||||||
params = {
|
params = {
|
||||||
'start': formatted2_previous_hour(720),
|
'start': formatted2_previous_hour(1440),
|
||||||
'end': formatted2_previous_hour(0),
|
'end': formatted2_previous_hour(0),
|
||||||
'by':'UpdatedAt',
|
'by':'UpdatedAt',
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,7 +68,7 @@ def fetch_data(token, index=1, pageSize=2000):
|
||||||
{"id": 214001},
|
{"id": 214001},
|
||||||
],
|
],
|
||||||
"desc": True,
|
"desc": True,
|
||||||
"from": formatted2_previous_hour(720, "%Y-%m-%dT%H:%M:%SZ"),
|
"from": formatted2_previous_hour(1440, "%Y-%m-%dT%H:%M:%SZ"),
|
||||||
"index": index,
|
"index": index,
|
||||||
"size": pageSize
|
"size": pageSize
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue