Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suddenly my code that was working has stopped working #126

Open
maylad31 opened this issue Sep 14, 2023 · 0 comments
Open

suddenly my code that was working has stopped working #126

maylad31 opened this issue Sep 14, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@maylad31
Copy link

maylad31 commented Sep 14, 2023

The bug/issue
Related to get_domain_activity, error is that i don't provide date_to and date_from even though i do provide them as you can see in the code below

To Reproduce
Steps to reproduce the behavior:

mailer = activity.NewActivity(api_key)
end_date = datetime.datetime.now()
start_date = end_date - datetime.timedelta(days=1)
#end_date=end_date.isoformat()
#start_date=start_date.isoformat()
end_date = int(end_date.timestamp())
start_date = int(start_date.timestamp())
events = [
"delivered",
]

sent_emails=mailer.get_domain_activity("my domain",limit=100,date_from=start_date, date_to=end_date, event=events)

sent_emails=json.loads(str(sent_emails))

Expected behavior
I have the list.

Environment (please complete the following information):

  • Python version 3.10
  • SDK version 0.5.1
@igorhrcek igorhrcek self-assigned this Sep 14, 2023
@igorhrcek igorhrcek added the bug Something isn't working label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants