File tree 6 files changed +33
-2
lines changed
discovery/communication_preferences
tests/spec/communication_preferences
6 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
- ## [ Unreleased] ( https://github.com/HubSpot/hubspot-api-python/compare/v3.7.0...HEAD )
8
+ ## [ Unreleased] ( https://github.com/HubSpot/hubspot-api-python/compare/v3.8.0...HEAD )
9
+
10
+ ## [ 3.8.0] ( https://github.com/HubSpot/hubspot-api-python/compare/v3.7.2...v3.8.0 ) - 2021-06-09
11
+
12
+ ### Added
13
+
14
+ - communication preferences API client
9
15
10
16
## [ 3.7.0] ( https://github.com/HubSpot/hubspot-api-python/compare/v3.6.1...v3.7.0 ) - 2021-02-19
11
17
Original file line number Diff line number Diff line change 1
- 3.7.2
1
+ 3.8.0
Original file line number Diff line number Diff line change 2
2
from .discovery .auth .discovery import Discovery as AuthDiscovery
3
3
from .discovery .automation .discovery import Discovery as AutomationDiscovery
4
4
from .discovery .cms .discovery import Discovery as CmsDiscovery
5
+ from .discovery .communication_preferences .discovery import Discovery as CommunicationPreferencesDiscovery
5
6
from .discovery .conversations .discovery import Discovery as ConversationsDiscovery
6
7
from .discovery .crm .discovery import Discovery as CrmDiscovery
7
8
from .discovery .events .discovery import Discovery as EventsDiscovery
@@ -54,6 +55,10 @@ def automation(self):
54
55
def cms (self ):
55
56
return CmsDiscovery (self .config )
56
57
58
+ @property
59
+ def communication_preferences (self ):
60
+ return CommunicationPreferencesDiscovery (self .config )
61
+
57
62
@property
58
63
def conversations (self ):
59
64
return ConversationsDiscovery (self .config )
Original file line number Diff line number Diff line change
1
+ import hubspot .communication_preferences as api_client
2
+ from ..discovery_base import DiscoveryBase
3
+
4
+
5
+ class Discovery (DiscoveryBase ):
6
+ @property
7
+ def definition_api (self ) -> api_client .DefinitionApi :
8
+ return self ._configure_api_client (api_client , "DefinitionApi" )
9
+
10
+ @property
11
+ def status_api (self ) -> api_client .StatusApi :
12
+ return self ._configure_api_client (api_client , "StatusApi" )
Original file line number Diff line number Diff line change
1
+ from hubspot import HubSpot
2
+ from hubspot .communication_preferences import DefinitionApi , StatusApi
3
+
4
+
5
+ def test_is_discoverable ():
6
+ apis = HubSpot ().communication_preferences
7
+ assert isinstance (apis .definition_api , DefinitionApi )
8
+ assert isinstance (apis .status_api , StatusApi )
You can’t perform that action at this time.
0 commit comments