File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public static void Example()
37
37
/**
38
38
* Get all companies with domain name "squaredup.com"
39
39
*/
40
- var companies = api . Company . GetByDomain < CompanySearchResultModel > ( "squaredup.com" , new CompanySearchByDomain ( )
40
+ var companies = api . Company . GetByDomain < CompanyHubSpotModel > ( "squaredup.com" , new CompanySearchByDomain ( )
41
41
{
42
42
Limit = 10
43
43
} ) ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public static void Example()
46
46
Hidden = true , //set to true for engagements
47
47
} ;
48
48
49
- var uploaded = api . File . Upload ( file ) ;
49
+ var uploaded = api . File . Upload < FileHubSpotModel > ( file ) ;
50
50
var fileId = uploaded . Objects . First ( ) . Id ;
51
51
52
52
/**
@@ -83,12 +83,8 @@ public static void Example()
83
83
* Get all contacts with specific properties
84
84
* By default only a few properties are returned
85
85
*/
86
- var contacts = api . Contact . List < ContactListHubSpotModel > ( new List < string >
87
- {
88
- "firstname" ,
89
- "lastname" ,
90
- "email"
91
- } ) ;
86
+ var contacts = api . Contact . List < ContactHubSpotModel > (
87
+ new ListRequestOptions { PropertiesToInclude = new List < string > { "firstname" , "lastname" , "email" } } ) ;
92
88
}
93
89
}
94
90
}
Original file line number Diff line number Diff line change @@ -31,10 +31,8 @@ public static void Example()
31
31
/**
32
32
* Get all deals
33
33
*/
34
- var deals = api . Deal . List < DealListHubSpotModel > ( new List < string >
35
- {
36
- "dealname" , "amount"
37
- } , false ) ;
34
+ var deals = api . Deal . List < DealHubSpotModel > ( false ,
35
+ new ListRequestOptions { PropertiesToInclude = new List < string > { "dealname" , "amount" } } ) ;
38
36
}
39
37
}
40
38
}
You can’t perform that action at this time.
0 commit comments