We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2c7117 commit 079c044Copy full SHA for 079c044
examples/contacts/contact_exports.py
@@ -1,5 +1,5 @@
1
import mailtrap as mt
2
-from mailtrap.models.contacts import ContactImport
+from mailtrap.models.contacts import ContactExportDetail
3
4
API_TOKEN = "YOUR_API_TOKEN"
5
ACCOUNT_ID = "YOUR_ACCOUNT_ID"
@@ -10,12 +10,12 @@
10
11
def create_export_contacts(
12
contact_exports_params: mt.CreateContactExportParams,
13
-) -> ContactImport:
+) -> ContactExportDetail:
14
return contact_exports_api.create(contact_exports_params=contact_exports_params)
15
16
17
-def get_contact_export(import_id: int) -> ContactImport:
18
- return contact_exports_api.get_by_id(import_id)
+def get_contact_export(export_id: int) -> ContactExportDetail:
+ return contact_exports_api.get_by_id(export_id)
19
20
21
if __name__ == "__main__":
0 commit comments