We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0f22ad commit 4236682Copy full SHA for 4236682
HubSpot.NET/Api/Company/HubSpotCompanyApi.cs
@@ -72,11 +72,13 @@ public HubSpotCompanyApi(IHubSpotClient client)
72
opts = new ListRequestOptions();
73
}
74
75
- var propsArgs = opts != null && opts.PropertiesToInclude.Any() ? "?properties=" + string.Join("&properties=", opts.PropertiesToInclude) : string.Empty;
76
-
77
- var path = $"{new CompanyHubSpotModel().RouteBasePath}/companies/paged{propsArgs}"
+ var path = $"{new CompanyHubSpotModel().RouteBasePath}/companies/paged"
78
.SetQueryParam("count", opts.Limit);
79
+ if (opts.PropertiesToInclude.Any())
+ {
80
+ path.SetQueryParam("properties", opts.PropertiesToInclude);
81
+ }
82
if (opts.Offset.HasValue)
83
{
84
path = path.SetQueryParam("offset", opts.Offset);
0 commit comments