RoushTech.HubSpot.NET
1.5.3-beta-33
dotnet add package RoushTech.HubSpot.NET --version 1.5.3-beta-33
NuGet\Install-Package RoushTech.HubSpot.NET -Version 1.5.3-beta-33
<PackageReference Include="RoushTech.HubSpot.NET" Version="1.5.3-beta-33" />
<PackageVersion Include="RoushTech.HubSpot.NET" Version="1.5.3-beta-33" />
<PackageReference Include="RoushTech.HubSpot.NET" />
paket add RoushTech.HubSpot.NET --version 1.5.3-beta-33
#r "nuget: RoushTech.HubSpot.NET, 1.5.3-beta-33"
#:package RoushTech.HubSpot.NET@1.5.3-beta-33
#addin nuget:?package=RoushTech.HubSpot.NET&version=1.5.3-beta-33&prerelease
#tool nuget:?package=RoushTech.HubSpot.NET&version=1.5.3-beta-33&prerelease
HubSpot.NET
C# .NET Wrapper around the common HubSpot APIs:
- Contact
- Company
- Deal
- Engagement
- Owners
- COS Files API (adds the ability to upload files to use as attachments to engagements)
Getting Started
To get started, install the Nuget package and create a instance of HubSpotApi
passing your API Key as the only parameter.
var api = new HubSpotApi("MY API KEY");
// Create a contact
var contact = api.Contact.Create(new ContactHubSpotModel()
{
Email = "john@squaredup.com",
FirstName = "John",
LastName = "Smith",
Phone = "00000 000000",
Company = "Squared Up Ltd."
});
For more examples see the HubSpot.NET.Examples project.
Using your own models
As HubSpot lets you create and add custom properties to your contacts, companies and deals it's likely you'll want to implement your own models. This is straightforward, simply extend the models shipped with this library, e.g. ContactHubSpotModel
and add your own properties. Use the DataMember
attributes to indicate the internal name. For example
public class Contact : ContactHubSpotModel
{
[DataMember(Name = "activities")]
public string Activities { get; set; }
[DataMember(Name = "type")]
public string Type { get; set; }
}
Using checkbox/radio properties
These properties should be of type string
and set as a semicolon delimitered list of values, e.g. "value1;value2". This is required by HubSpot, see here for more details.
Contributing
Please read CONTRIBUTING.md for more information on how to contribute. PRs welcome!
Authors
- Dave Clarke
License
This project is licensed under the MIT License - see the LICENSE file for details
Acknowledgements
- Initial version based on dotnetcore-hubspot-client by skarpdev, expanded to additional APIs and heavily refactored to use RestSharp etc.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.3)
- RestSharp (>= 109.0.1)
- System.Net.Http (>= 4.3.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.5.3-beta-33 | 1,875 | 5/8/2025 |
Version 1.5.3
* Update RestSharp - community contribution thanks to https://github.com/middiu
Version 1.5.2
* Implement Ticket to Deal Associations - community contribution thanks to https://github.com/avalanchis
Version 1.5.1
* Address an issue with updating Tickets
Version 1.5.0
* Implement basic ticket API operations - community contribution thanks to https://github.com/avalanchis
Version 1.4.0
* Bugfix for Task property initialisation on HubspotApi - as per requested by https://github.com/Chinchilla-Software-Com/HubSpot.NET/issues/19
Version 1.3.0
* Bugfix for OAuth token renewals - as per requested by https://github.com/Chinchilla-Software-Com/HubSpot.NET/issues/16
Version 1.2.0
* Implement basic task list API operations - as per requested by https://github.com/Chinchilla-Software-Com/HubSpot.NET/issues/13
Version 1.1.0
* Implement basic contact list API operations - community contribution thanks to https://github.com/lakesol
Version 1.0.0.2
* Upgraded RestSharp to 106.15.0 to address a security issue.
* Changed target framework from 4.6 to 4.5.2.
Version 1.0.0.1
* Adds OAuth to 0.6.20.1
* Minor breaking change, Offset properties on response objects standardised to ContinuationOffset
* Added sorting to searching contacts
* Added ability to include inactive owners when calling for all owners
* Added ability to filter owners by email address when calling for all owners
* Removed dependency on Flurl.