Skip to content

Commit b4ad988

Browse files
events send
1 parent b1ecb15 commit b4ad988

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

hubspot/discovery/events/discovery.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ class Discovery(DiscoveryBase):
66
@property
77
def events_api(self) -> api_client.EventsApi:
88
return self._configure_api_client(api_client, "EventsApi")
9+
10+
@property
11+
def send(self):
12+
from .send.discovery import Discovery as SendDiscovery
13+
return SendDiscovery(self.config)
14+

hubspot/discovery/events/send/__init__.py

Whitespace-only changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import hubspot.events.send as api_client
2+
from ...discovery_base import DiscoveryBase
3+
4+
5+
class Discovery(DiscoveryBase):
6+
@property
7+
def behavioral_events_tracking_api(self) -> api_client.BehavioralEventsTrackingApi:
8+
return self._configure_api_client(api_client, "BehavioralEventsTrackingApi")
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from hubspot import HubSpot
2+
from hubspot.events.send import BehavioralEventsTrackingApi
3+
4+
5+
def test_is_discoverable():
6+
apis = HubSpot().events.send
7+
assert isinstance(apis.behavioral_events_tracking_api, BehavioralEventsTrackingApi)

0 commit comments

Comments
 (0)