File tree Expand file tree Collapse file tree 5 files changed +50
-9
lines changed Expand file tree Collapse file tree 5 files changed +50
-9
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public HubSpotEmailEventsApi(IHubSpotClient client)
31
31
{
32
32
var path = $ "{ ( new T ( ) ) . RouteBasePath } /{ campaignId } "
33
33
. SetQueryParam ( "appId" , appId ) ;
34
- var data = _client . Execute < T > ( path , Method . GET , convertToPropertiesSchema : false ) ;
34
+ var data = _client . Execute < T > ( path , Method . GET ) ;
35
35
return data ;
36
36
}
37
37
@@ -56,7 +56,7 @@ public HubSpotEmailEventsApi(IHubSpotClient client)
56
56
path = path . SetQueryParam ( "offset" , opts . Offset ) ;
57
57
}
58
58
59
- var data = _client . ExecuteList < EmailCampaignListHubSpotModel < T > > ( path , opts , convertToPropertiesSchema : false ) ;
59
+ var data = _client . Execute < EmailCampaignListHubSpotModel < T > > ( path ) ;
60
60
61
61
return data ;
62
62
}
@@ -82,7 +82,7 @@ public HubSpotEmailEventsApi(IHubSpotClient client)
82
82
path = path . SetQueryParam ( "offset" , opts . Offset ) ;
83
83
}
84
84
85
- var data = _client . ExecuteList < EmailCampaignListHubSpotModel < T > > ( path , opts , convertToPropertiesSchema : false ) ;
85
+ var data = _client . Execute < EmailCampaignListHubSpotModel < T > > ( path ) ;
86
86
87
87
return data ;
88
88
}
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public EngagementHubSpotModel GetById(long engagementId)
53
53
/// <returns>List of engagements, with additional metadata, e.g. total</returns>
54
54
public EngagementListHubSpotModel < T > List < T > ( EngagementListRequestOptions opts = null ) where T : EngagementHubSpotModel
55
55
{
56
- opts = opts ?? new EngagementListRequestOptions ( ) ;
56
+ opts = opts ?? new EngagementListRequestOptions ( ) ;
57
57
58
58
var path = $ "{ GetRoute < T > ( "paged" ) } ". SetQueryParam ( "limit" , opts . Limit ) ;
59
59
@@ -70,7 +70,7 @@ public EngagementListHubSpotModel<T> List<T>(EngagementListRequestOptions opts =
70
70
/// <returns>List of engagements, with additional metadata, e.g. total</returns>
71
71
public EngagementListHubSpotModel < T > ListRecent < T > ( EngagementListRequestOptions opts = null ) where T : EngagementHubSpotModel
72
72
{
73
- opts ??= new EngagementListRequestOptions ( ) ;
73
+ opts = opts ?? new EngagementListRequestOptions ( ) ;
74
74
75
75
var path = $ "{ GetRoute < T > ( ) } /engagements/recent/modified". SetQueryParam ( "count" , opts . Limit ) ;
76
76
Original file line number Diff line number Diff line change 3
3
using HubSpot . NET . Api . Company ;
4
4
using HubSpot . NET . Api . Contact ;
5
5
using HubSpot . NET . Api . Deal ;
6
+ using HubSpot . NET . Api . EmailEvents ;
6
7
using HubSpot . NET . Api . EmailSubscriptions ;
7
8
using HubSpot . NET . Api . Engagement ;
8
9
using HubSpot . NET . Api . Files ;
@@ -27,7 +28,7 @@ public class HubSpotApi : IHubSpotApi
27
28
public IHubSpotCosFileApi File { get ; private set ; }
28
29
public IHubSpotOwnerApi Owner { get ; private set ; }
29
30
public IHubSpotCompanyPropertiesApi CompanyProperties { get ; private set ; }
30
-
31
+ public IHubSpotEmailEventsApi EmailEvents { get ; private set ; }
31
32
public IHubSpotEmailSubscriptionsApi EmailSubscriptions { get ; private set ; }
32
33
public IHubSpotTimelineApi Timelines { get ; private set ; }
33
34
Original file line number Diff line number Diff line change 8
8
<Company >HubSpot.NET</Company >
9
9
<Description >C# .NET client library targeting the HubSpot APIs.</Description >
10
10
<Copyright >HubSpot.NET</Copyright >
11
- <PackageLicenseUrl >https://github.com/squaredup /HubSpot.NET/blob/master/LICENSE</PackageLicenseUrl >
11
+ <PackageLicenseUrl >https://github.com/hubspot-net /HubSpot.NET/blob/master/LICENSE</PackageLicenseUrl >
12
12
<PackageProjectUrl >https://github.com/hubspot-net/HubSpot.NET</PackageProjectUrl >
13
13
<RepositoryUrl >https://github.com/hubspot-net/HubSpot.NET.git</RepositoryUrl >
14
14
<PackageTags >hubspot api wrapper c# contact company deal engagement properties crm</PackageTags >
15
15
<PackageReleaseNotes >0.8.13</PackageReleaseNotes >
16
16
<PackageId >HubSpot.NET</PackageId >
17
17
</PropertyGroup >
18
18
<PropertyGroup Condition =" '$(Configuration)|$(Platform)'=='Release|AnyCPU'" >
19
- <LangVersion >7.1 </LangVersion >
19
+ <LangVersion >7.3 </LangVersion >
20
20
</PropertyGroup >
21
21
<PropertyGroup Condition =" '$(Configuration)|$(Platform)'=='Debug|AnyCPU'" >
22
- <LangVersion >7.1 </LangVersion >
22
+ <LangVersion >7.3 </LangVersion >
23
23
</PropertyGroup >
24
24
<ItemGroup >
25
25
<PackageReference Include =" Flurl" Version =" 2.8.0" />
Original file line number Diff line number Diff line change
1
+ # ASP.NET Core (.NET Framework)
2
+ # Build and test ASP.NET Core projects targeting the full .NET Framework.
3
+ # Add steps that publish symbols, save build artifacts, and more:
4
+ # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
5
+
6
+ trigger :
7
+ branches :
8
+ include :
9
+ - master
10
+ - refs/tags/*
11
+
12
+ pr :
13
+ - master
14
+
15
+ pool :
16
+ vmImage : ' windows-latest'
17
+
18
+ variables :
19
+ solution : ' **/*.sln'
20
+ buildPlatform : ' Any CPU'
21
+ buildConfiguration : ' Release'
22
+
23
+ steps :
24
+ - task : NuGetToolInstaller@1
25
+
26
+ - task : NuGetCommand@2
27
+ inputs :
28
+ restoreSolution : ' $(solution)'
29
+
30
+ - task : VSBuild@1
31
+ inputs :
32
+ solution : ' $(solution)'
33
+ msbuildArgs : ' /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactStagingDirectory)\WebApp.zip" /p:DeployIisAppPath="Default Web Site"'
34
+ platform : ' $(buildPlatform)'
35
+ configuration : ' $(buildConfiguration)'
36
+
37
+ - task : VSTest@2
38
+ inputs :
39
+ platform : ' $(buildPlatform)'
40
+ configuration : ' $(buildConfiguration)'
You can’t perform that action at this time.
0 commit comments