...
Code Block | ||
---|---|---|
| ||
curl --location 'https://accenture.evolux.cx/api/v1/reports/campaign/subscribers?timezone=America%2FSao_Paulo&start=2024-09-05T00%3A00%3A00.000Z&end=2024-09-06T02%3A59%3A59.999Z&timezone=%3DAmerica%2FSao_Paulo&conversation_field_key=perfil&conversation_field_value=Pessoa%20Jur%C3%ADdica' \
--header 'Authorization: Bearer ********-****-****-****-************' |
...
Code Block | ||
---|---|---|
| ||
import requests
# URL base
url = "https://seuservidor.evolux.cx/api/v1/reports/campaign/subscribers"
# Parâmetros da requisição
params = {
'start': '2024-09-05T00:00:00.000Z',
'end': '2024-09-06T23:59:59.999Z',
'timezone': 'America/Sao_Paulo',
'conversation_field_key': 'perfil',
'conversation_field_value': 'Pessoa Jurídica'
}
# Cabeçalhos da requisição
headers = {
'Authorization': 'Bearer ********-****-****-****-************'
}
# Realizando a requisição GET com os parâmetros e cabeçalhos
response = requests.get(url, headers=headers, params=params)
# Imprimindo a resposta
print(response.text)
|
...
Code Block | ||
---|---|---|
| ||
import requests
url = "https://seuservidor.evolux.cx/api/v1/reports/campaign/subscribers"
params = {
"campaigns[]": [
"f45d98dc-ac5e-48f2-9c01-ebe18f86d28b",
"e629ed93-0ab7-4319-accb-813330938f84"
],
"state": "error",
'timezone': 'America/Sao_Paulo'
}
headers = {
'Authorization': 'Bearer ********-****-****-****-************'
}
response = requests.get(url, headers=headers, params=params)
print(response.text)
|
...