fathom-python 0.0.27__tar.gz → 0.0.28__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fathom_python-0.0.27 → fathom_python-0.0.28}/PKG-INFO +1 -1
- {fathom_python-0.0.27 → fathom_python-0.0.28}/pyproject.toml +1 -1
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/__init__.py +0 -2
- fathom_python-0.0.28/src/fathom/base_client.py +142 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/core/client_wrapper.py +2 -2
- fathom_python-0.0.28/src/fathom/errors/__init__.py +10 -0
- fathom_python-0.0.28/src/fathom/errors/not_found_error.py +10 -0
- fathom_python-0.0.28/src/fathom/errors/too_many_requests_error.py +10 -0
- fathom_python-0.0.28/src/fathom/meetings/__init__.py +7 -0
- fathom_python-0.0.28/src/fathom/meetings/client.py +250 -0
- fathom_python-0.0.27/src/fathom/raw_base_client.py → fathom_python-0.0.28/src/fathom/meetings/raw_client.py +114 -403
- fathom_python-0.0.28/src/fathom/meetings/types/__init__.py +7 -0
- fathom_python-0.0.28/src/fathom/team_members/__init__.py +4 -0
- fathom_python-0.0.28/src/fathom/team_members/client.py +119 -0
- fathom_python-0.0.28/src/fathom/team_members/raw_client.py +210 -0
- fathom_python-0.0.28/src/fathom/teams/__init__.py +4 -0
- fathom_python-0.0.28/src/fathom/teams/client.py +105 -0
- fathom_python-0.0.28/src/fathom/teams/raw_client.py +192 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/__init__.py +2 -2
- fathom_python-0.0.28/src/fathom/types/webhook.py +35 -0
- fathom_python-0.0.28/src/fathom/webhooks/__init__.py +4 -0
- fathom_python-0.0.28/src/fathom/webhooks/client.py +209 -0
- fathom_python-0.0.28/src/fathom/webhooks/raw_client.py +383 -0
- fathom_python-0.0.27/src/fathom/base_client.py +0 -511
- fathom_python-0.0.27/src/fathom/errors/__init__.py +0 -8
- {fathom_python-0.0.27 → fathom_python-0.0.28}/README.md +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/client.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/core/__init__.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/core/api_error.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/core/datetime_utils.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/core/file.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/core/force_multipart.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/core/http_client.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/core/http_response.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/core/jsonable_encoder.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/core/pagination.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/core/pydantic_utilities.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/core/query_encoder.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/core/remove_none_from_dict.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/core/request_options.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/core/serialization.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/environment.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/errors/bad_request_error.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/errors/unauthorized_error.py +0 -0
- {fathom_python-0.0.27/src/fathom → fathom_python-0.0.28/src/fathom/meetings}/types/list_meetings_request_meeting_type.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/py.typed +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/action_item.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/assignee.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/crm_company_match.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/crm_contact_match.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/crm_deal_match.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/crm_matches.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/fathom_user.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/invitee.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/meeting.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/meeting_list_response.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/meeting_meeting_type.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/meeting_summary.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/team.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/team_list_response.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/team_member.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/team_member_list_response.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/transcript_item.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/types/transcript_item_speaker.py +0 -0
- {fathom_python-0.0.27 → fathom_python-0.0.28}/src/fathom/version.py +0 -0
|
@@ -11,7 +11,6 @@ from .types import (
|
|
|
11
11
|
CrmMatches,
|
|
12
12
|
FathomUser,
|
|
13
13
|
Invitee,
|
|
14
|
-
ListMeetingsRequestMeetingType,
|
|
15
14
|
Meeting,
|
|
16
15
|
MeetingListResponse,
|
|
17
16
|
MeetingMeetingType,
|
|
@@ -41,7 +40,6 @@ __all__ = [
|
|
|
41
40
|
"CrmMatches",
|
|
42
41
|
"FathomUser",
|
|
43
42
|
"Invitee",
|
|
44
|
-
"ListMeetingsRequestMeetingType",
|
|
45
43
|
"Meeting",
|
|
46
44
|
"MeetingListResponse",
|
|
47
45
|
"MeetingMeetingType",
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
7
|
+
from .environment import FathomApiEnvironment
|
|
8
|
+
from .meetings.client import AsyncMeetingsClient, MeetingsClient
|
|
9
|
+
from .team_members.client import AsyncTeamMembersClient, TeamMembersClient
|
|
10
|
+
from .teams.client import AsyncTeamsClient, TeamsClient
|
|
11
|
+
from .webhooks.client import AsyncWebhooksClient, WebhooksClient
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class BaseClient:
|
|
15
|
+
"""
|
|
16
|
+
Use this class to access the different functions within the SDK. You can instantiate any number of clients with different configuration that will propagate to these functions.
|
|
17
|
+
|
|
18
|
+
Parameters
|
|
19
|
+
----------
|
|
20
|
+
base_url : typing.Optional[str]
|
|
21
|
+
The base url to use for requests from the client.
|
|
22
|
+
|
|
23
|
+
environment : FathomApiEnvironment
|
|
24
|
+
The environment to use for requests from the client. from .environment import FathomApiEnvironment
|
|
25
|
+
|
|
26
|
+
Defaults to FathomApiEnvironment.DEFAULT
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
api_key : str
|
|
31
|
+
timeout : typing.Optional[float]
|
|
32
|
+
The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
|
|
33
|
+
|
|
34
|
+
follow_redirects : typing.Optional[bool]
|
|
35
|
+
Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in.
|
|
36
|
+
|
|
37
|
+
httpx_client : typing.Optional[httpx.Client]
|
|
38
|
+
The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.
|
|
39
|
+
|
|
40
|
+
Examples
|
|
41
|
+
--------
|
|
42
|
+
from fathom import FathomApi
|
|
43
|
+
client = FathomApi(api_key="YOUR_API_KEY", )
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def __init__(
|
|
47
|
+
self,
|
|
48
|
+
*,
|
|
49
|
+
base_url: typing.Optional[str] = None,
|
|
50
|
+
environment: FathomApiEnvironment = FathomApiEnvironment.DEFAULT,
|
|
51
|
+
api_key: str,
|
|
52
|
+
timeout: typing.Optional[float] = None,
|
|
53
|
+
follow_redirects: typing.Optional[bool] = True,
|
|
54
|
+
httpx_client: typing.Optional[httpx.Client] = None,
|
|
55
|
+
):
|
|
56
|
+
_defaulted_timeout = (
|
|
57
|
+
timeout if timeout is not None else 60 if httpx_client is None else httpx_client.timeout.read
|
|
58
|
+
)
|
|
59
|
+
self._client_wrapper = SyncClientWrapper(
|
|
60
|
+
base_url=_get_base_url(base_url=base_url, environment=environment),
|
|
61
|
+
api_key=api_key,
|
|
62
|
+
httpx_client=httpx_client
|
|
63
|
+
if httpx_client is not None
|
|
64
|
+
else httpx.Client(timeout=_defaulted_timeout, follow_redirects=follow_redirects)
|
|
65
|
+
if follow_redirects is not None
|
|
66
|
+
else httpx.Client(timeout=_defaulted_timeout),
|
|
67
|
+
timeout=_defaulted_timeout,
|
|
68
|
+
)
|
|
69
|
+
self.meetings = MeetingsClient(client_wrapper=self._client_wrapper)
|
|
70
|
+
self.teams = TeamsClient(client_wrapper=self._client_wrapper)
|
|
71
|
+
self.team_members = TeamMembersClient(client_wrapper=self._client_wrapper)
|
|
72
|
+
self.webhooks = WebhooksClient(client_wrapper=self._client_wrapper)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class AsyncBaseClient:
|
|
76
|
+
"""
|
|
77
|
+
Use this class to access the different functions within the SDK. You can instantiate any number of clients with different configuration that will propagate to these functions.
|
|
78
|
+
|
|
79
|
+
Parameters
|
|
80
|
+
----------
|
|
81
|
+
base_url : typing.Optional[str]
|
|
82
|
+
The base url to use for requests from the client.
|
|
83
|
+
|
|
84
|
+
environment : FathomApiEnvironment
|
|
85
|
+
The environment to use for requests from the client. from .environment import FathomApiEnvironment
|
|
86
|
+
|
|
87
|
+
Defaults to FathomApiEnvironment.DEFAULT
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
api_key : str
|
|
92
|
+
timeout : typing.Optional[float]
|
|
93
|
+
The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
|
|
94
|
+
|
|
95
|
+
follow_redirects : typing.Optional[bool]
|
|
96
|
+
Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in.
|
|
97
|
+
|
|
98
|
+
httpx_client : typing.Optional[httpx.AsyncClient]
|
|
99
|
+
The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.
|
|
100
|
+
|
|
101
|
+
Examples
|
|
102
|
+
--------
|
|
103
|
+
from fathom import AsyncFathomApi
|
|
104
|
+
client = AsyncFathomApi(api_key="YOUR_API_KEY", )
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
def __init__(
|
|
108
|
+
self,
|
|
109
|
+
*,
|
|
110
|
+
base_url: typing.Optional[str] = None,
|
|
111
|
+
environment: FathomApiEnvironment = FathomApiEnvironment.DEFAULT,
|
|
112
|
+
api_key: str,
|
|
113
|
+
timeout: typing.Optional[float] = None,
|
|
114
|
+
follow_redirects: typing.Optional[bool] = True,
|
|
115
|
+
httpx_client: typing.Optional[httpx.AsyncClient] = None,
|
|
116
|
+
):
|
|
117
|
+
_defaulted_timeout = (
|
|
118
|
+
timeout if timeout is not None else 60 if httpx_client is None else httpx_client.timeout.read
|
|
119
|
+
)
|
|
120
|
+
self._client_wrapper = AsyncClientWrapper(
|
|
121
|
+
base_url=_get_base_url(base_url=base_url, environment=environment),
|
|
122
|
+
api_key=api_key,
|
|
123
|
+
httpx_client=httpx_client
|
|
124
|
+
if httpx_client is not None
|
|
125
|
+
else httpx.AsyncClient(timeout=_defaulted_timeout, follow_redirects=follow_redirects)
|
|
126
|
+
if follow_redirects is not None
|
|
127
|
+
else httpx.AsyncClient(timeout=_defaulted_timeout),
|
|
128
|
+
timeout=_defaulted_timeout,
|
|
129
|
+
)
|
|
130
|
+
self.meetings = AsyncMeetingsClient(client_wrapper=self._client_wrapper)
|
|
131
|
+
self.teams = AsyncTeamsClient(client_wrapper=self._client_wrapper)
|
|
132
|
+
self.team_members = AsyncTeamMembersClient(client_wrapper=self._client_wrapper)
|
|
133
|
+
self.webhooks = AsyncWebhooksClient(client_wrapper=self._client_wrapper)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
def _get_base_url(*, base_url: typing.Optional[str] = None, environment: FathomApiEnvironment) -> str:
|
|
137
|
+
if base_url is not None:
|
|
138
|
+
return base_url
|
|
139
|
+
elif environment is not None:
|
|
140
|
+
return environment.value
|
|
141
|
+
else:
|
|
142
|
+
raise Exception("Please pass in either base_url or environment to construct the client")
|
|
@@ -14,10 +14,10 @@ class BaseClientWrapper:
|
|
|
14
14
|
|
|
15
15
|
def get_headers(self) -> typing.Dict[str, str]:
|
|
16
16
|
headers: typing.Dict[str, str] = {
|
|
17
|
-
"User-Agent": "fathom-python/0.0.
|
|
17
|
+
"User-Agent": "fathom-python/0.0.28",
|
|
18
18
|
"X-Fern-Language": "Python",
|
|
19
19
|
"X-Fern-SDK-Name": "fathom-python",
|
|
20
|
-
"X-Fern-SDK-Version": "0.0.
|
|
20
|
+
"X-Fern-SDK-Version": "0.0.28",
|
|
21
21
|
}
|
|
22
22
|
headers["X-Api-Key"] = self.api_key
|
|
23
23
|
return headers
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
# isort: skip_file
|
|
4
|
+
|
|
5
|
+
from .bad_request_error import BadRequestError
|
|
6
|
+
from .not_found_error import NotFoundError
|
|
7
|
+
from .too_many_requests_error import TooManyRequestsError
|
|
8
|
+
from .unauthorized_error import UnauthorizedError
|
|
9
|
+
|
|
10
|
+
__all__ = ["BadRequestError", "NotFoundError", "TooManyRequestsError", "UnauthorizedError"]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
from ..core.api_error import ApiError
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class NotFoundError(ApiError):
|
|
9
|
+
def __init__(self, body: typing.Optional[typing.Any], headers: typing.Optional[typing.Dict[str, str]] = None):
|
|
10
|
+
super().__init__(status_code=404, headers=headers, body=body)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
from ..core.api_error import ApiError
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class TooManyRequestsError(ApiError):
|
|
9
|
+
def __init__(self, body: typing.Optional[typing.Any], headers: typing.Optional[typing.Dict[str, str]] = None):
|
|
10
|
+
super().__init__(status_code=429, headers=headers, body=body)
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
6
|
+
from ..core.pagination import AsyncPager, SyncPager
|
|
7
|
+
from ..core.request_options import RequestOptions
|
|
8
|
+
from ..types.meeting import Meeting
|
|
9
|
+
from .raw_client import AsyncRawMeetingsClient, RawMeetingsClient
|
|
10
|
+
from .types.list_meetings_request_meeting_type import ListMeetingsRequestMeetingType
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class MeetingsClient:
|
|
14
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
15
|
+
self._raw_client = RawMeetingsClient(client_wrapper=client_wrapper)
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def with_raw_response(self) -> RawMeetingsClient:
|
|
19
|
+
"""
|
|
20
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
21
|
+
|
|
22
|
+
Returns
|
|
23
|
+
-------
|
|
24
|
+
RawMeetingsClient
|
|
25
|
+
"""
|
|
26
|
+
return self._raw_client
|
|
27
|
+
|
|
28
|
+
def list_meetings(
|
|
29
|
+
self,
|
|
30
|
+
*,
|
|
31
|
+
calendar_invitees: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
32
|
+
calendar_invitees_domains: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
33
|
+
created_after: typing.Optional[str] = None,
|
|
34
|
+
created_before: typing.Optional[str] = None,
|
|
35
|
+
cursor: typing.Optional[str] = None,
|
|
36
|
+
include_crm_matches: typing.Optional[bool] = None,
|
|
37
|
+
include_transcript: typing.Optional[bool] = None,
|
|
38
|
+
meeting_type: typing.Optional[ListMeetingsRequestMeetingType] = None,
|
|
39
|
+
recorded_by: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
40
|
+
teams: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
41
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
42
|
+
) -> SyncPager[Meeting]:
|
|
43
|
+
"""
|
|
44
|
+
Parameters
|
|
45
|
+
----------
|
|
46
|
+
calendar_invitees : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
47
|
+
Email address of calendar_invitees to filter by.
|
|
48
|
+
|
|
49
|
+
Pass the parameter once per value, e.g.
|
|
50
|
+
`calendar_invitees[]=cfo@acme.com&calendar_invitees[]=legal@acme.com`.
|
|
51
|
+
|
|
52
|
+
Returns meetings where any of the given email addresses appear
|
|
53
|
+
in the calendar_invitees list.
|
|
54
|
+
|
|
55
|
+
calendar_invitees_domains : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
56
|
+
Domains of the companies to filter by. Exact match.
|
|
57
|
+
|
|
58
|
+
Pass the parameter once per value, e.g.
|
|
59
|
+
`calendar_invitees_domains[]=acme.com&calendar_invitees_domains[]=client.com`.
|
|
60
|
+
|
|
61
|
+
Returns meetings where any of the given company domains appear in the meeting.
|
|
62
|
+
|
|
63
|
+
created_after : typing.Optional[str]
|
|
64
|
+
Filter to meetings with created_at after this timestamp, e.g. `created_after=2025-01-01T00:00:00Z`.
|
|
65
|
+
|
|
66
|
+
created_before : typing.Optional[str]
|
|
67
|
+
Filter to meetings with created_at before this timestamp, e.g. `created_before=2025-01-01T00:00:00Z`.
|
|
68
|
+
|
|
69
|
+
cursor : typing.Optional[str]
|
|
70
|
+
Cursor for pagination.
|
|
71
|
+
|
|
72
|
+
include_crm_matches : typing.Optional[bool]
|
|
73
|
+
Include CRM matches for each meeting. Only returns data from your or your team's linked CRM.
|
|
74
|
+
|
|
75
|
+
include_transcript : typing.Optional[bool]
|
|
76
|
+
Include the transcript for each meeting.
|
|
77
|
+
|
|
78
|
+
meeting_type : typing.Optional[ListMeetingsRequestMeetingType]
|
|
79
|
+
Filter by meeting type.
|
|
80
|
+
|
|
81
|
+
recorded_by : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
82
|
+
Email addresses of meeting owners.
|
|
83
|
+
|
|
84
|
+
Pass the parameter once per value, e.g.
|
|
85
|
+
`recorded_by[]=ceo@acme.com&recorded_by[]=pm@acme.com`.
|
|
86
|
+
|
|
87
|
+
Returns meetings hosted by any of the specified users.
|
|
88
|
+
|
|
89
|
+
teams : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
90
|
+
Team names to filter by.
|
|
91
|
+
|
|
92
|
+
Pass the parameter once per value, e.g.
|
|
93
|
+
`teams[]=Sales&teams[]=Engineering`.
|
|
94
|
+
|
|
95
|
+
Returns meetings that belong to any of the specified teams.
|
|
96
|
+
|
|
97
|
+
request_options : typing.Optional[RequestOptions]
|
|
98
|
+
Request-specific configuration.
|
|
99
|
+
|
|
100
|
+
Returns
|
|
101
|
+
-------
|
|
102
|
+
SyncPager[Meeting]
|
|
103
|
+
Paginated list of meetings.
|
|
104
|
+
|
|
105
|
+
Examples
|
|
106
|
+
--------
|
|
107
|
+
from fathom import FathomApi
|
|
108
|
+
client = FathomApi(api_key="YOUR_API_KEY", )
|
|
109
|
+
response = client.meetings.list_meetings()
|
|
110
|
+
for item in response:
|
|
111
|
+
yield item
|
|
112
|
+
# alternatively, you can paginate page-by-page
|
|
113
|
+
for page in response.iter_pages():
|
|
114
|
+
yield page
|
|
115
|
+
"""
|
|
116
|
+
return self._raw_client.list_meetings(
|
|
117
|
+
calendar_invitees=calendar_invitees,
|
|
118
|
+
calendar_invitees_domains=calendar_invitees_domains,
|
|
119
|
+
created_after=created_after,
|
|
120
|
+
created_before=created_before,
|
|
121
|
+
cursor=cursor,
|
|
122
|
+
include_crm_matches=include_crm_matches,
|
|
123
|
+
include_transcript=include_transcript,
|
|
124
|
+
meeting_type=meeting_type,
|
|
125
|
+
recorded_by=recorded_by,
|
|
126
|
+
teams=teams,
|
|
127
|
+
request_options=request_options,
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
class AsyncMeetingsClient:
|
|
132
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
133
|
+
self._raw_client = AsyncRawMeetingsClient(client_wrapper=client_wrapper)
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def with_raw_response(self) -> AsyncRawMeetingsClient:
|
|
137
|
+
"""
|
|
138
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
139
|
+
|
|
140
|
+
Returns
|
|
141
|
+
-------
|
|
142
|
+
AsyncRawMeetingsClient
|
|
143
|
+
"""
|
|
144
|
+
return self._raw_client
|
|
145
|
+
|
|
146
|
+
async def list_meetings(
|
|
147
|
+
self,
|
|
148
|
+
*,
|
|
149
|
+
calendar_invitees: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
150
|
+
calendar_invitees_domains: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
151
|
+
created_after: typing.Optional[str] = None,
|
|
152
|
+
created_before: typing.Optional[str] = None,
|
|
153
|
+
cursor: typing.Optional[str] = None,
|
|
154
|
+
include_crm_matches: typing.Optional[bool] = None,
|
|
155
|
+
include_transcript: typing.Optional[bool] = None,
|
|
156
|
+
meeting_type: typing.Optional[ListMeetingsRequestMeetingType] = None,
|
|
157
|
+
recorded_by: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
158
|
+
teams: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
159
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
160
|
+
) -> AsyncPager[Meeting]:
|
|
161
|
+
"""
|
|
162
|
+
Parameters
|
|
163
|
+
----------
|
|
164
|
+
calendar_invitees : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
165
|
+
Email address of calendar_invitees to filter by.
|
|
166
|
+
|
|
167
|
+
Pass the parameter once per value, e.g.
|
|
168
|
+
`calendar_invitees[]=cfo@acme.com&calendar_invitees[]=legal@acme.com`.
|
|
169
|
+
|
|
170
|
+
Returns meetings where any of the given email addresses appear
|
|
171
|
+
in the calendar_invitees list.
|
|
172
|
+
|
|
173
|
+
calendar_invitees_domains : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
174
|
+
Domains of the companies to filter by. Exact match.
|
|
175
|
+
|
|
176
|
+
Pass the parameter once per value, e.g.
|
|
177
|
+
`calendar_invitees_domains[]=acme.com&calendar_invitees_domains[]=client.com`.
|
|
178
|
+
|
|
179
|
+
Returns meetings where any of the given company domains appear in the meeting.
|
|
180
|
+
|
|
181
|
+
created_after : typing.Optional[str]
|
|
182
|
+
Filter to meetings with created_at after this timestamp, e.g. `created_after=2025-01-01T00:00:00Z`.
|
|
183
|
+
|
|
184
|
+
created_before : typing.Optional[str]
|
|
185
|
+
Filter to meetings with created_at before this timestamp, e.g. `created_before=2025-01-01T00:00:00Z`.
|
|
186
|
+
|
|
187
|
+
cursor : typing.Optional[str]
|
|
188
|
+
Cursor for pagination.
|
|
189
|
+
|
|
190
|
+
include_crm_matches : typing.Optional[bool]
|
|
191
|
+
Include CRM matches for each meeting. Only returns data from your or your team's linked CRM.
|
|
192
|
+
|
|
193
|
+
include_transcript : typing.Optional[bool]
|
|
194
|
+
Include the transcript for each meeting.
|
|
195
|
+
|
|
196
|
+
meeting_type : typing.Optional[ListMeetingsRequestMeetingType]
|
|
197
|
+
Filter by meeting type.
|
|
198
|
+
|
|
199
|
+
recorded_by : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
200
|
+
Email addresses of meeting owners.
|
|
201
|
+
|
|
202
|
+
Pass the parameter once per value, e.g.
|
|
203
|
+
`recorded_by[]=ceo@acme.com&recorded_by[]=pm@acme.com`.
|
|
204
|
+
|
|
205
|
+
Returns meetings hosted by any of the specified users.
|
|
206
|
+
|
|
207
|
+
teams : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
208
|
+
Team names to filter by.
|
|
209
|
+
|
|
210
|
+
Pass the parameter once per value, e.g.
|
|
211
|
+
`teams[]=Sales&teams[]=Engineering`.
|
|
212
|
+
|
|
213
|
+
Returns meetings that belong to any of the specified teams.
|
|
214
|
+
|
|
215
|
+
request_options : typing.Optional[RequestOptions]
|
|
216
|
+
Request-specific configuration.
|
|
217
|
+
|
|
218
|
+
Returns
|
|
219
|
+
-------
|
|
220
|
+
AsyncPager[Meeting]
|
|
221
|
+
Paginated list of meetings.
|
|
222
|
+
|
|
223
|
+
Examples
|
|
224
|
+
--------
|
|
225
|
+
from fathom import AsyncFathomApi
|
|
226
|
+
import asyncio
|
|
227
|
+
client = AsyncFathomApi(api_key="YOUR_API_KEY", )
|
|
228
|
+
async def main() -> None:
|
|
229
|
+
response = await client.meetings.list_meetings()
|
|
230
|
+
async for item in response:
|
|
231
|
+
yield item
|
|
232
|
+
|
|
233
|
+
# alternatively, you can paginate page-by-page
|
|
234
|
+
async for page in response.iter_pages():
|
|
235
|
+
yield page
|
|
236
|
+
asyncio.run(main())
|
|
237
|
+
"""
|
|
238
|
+
return await self._raw_client.list_meetings(
|
|
239
|
+
calendar_invitees=calendar_invitees,
|
|
240
|
+
calendar_invitees_domains=calendar_invitees_domains,
|
|
241
|
+
created_after=created_after,
|
|
242
|
+
created_before=created_before,
|
|
243
|
+
cursor=cursor,
|
|
244
|
+
include_crm_matches=include_crm_matches,
|
|
245
|
+
include_transcript=include_transcript,
|
|
246
|
+
meeting_type=meeting_type,
|
|
247
|
+
recorded_by=recorded_by,
|
|
248
|
+
teams=teams,
|
|
249
|
+
request_options=request_options,
|
|
250
|
+
)
|