SquaredUp.HubSpot.NET 0.5.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package SquaredUp.HubSpot.NET --version 0.5.0
NuGet\Install-Package SquaredUp.HubSpot.NET -Version 0.5.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SquaredUp.HubSpot.NET" Version="0.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SquaredUp.HubSpot.NET --version 0.5.0
#r "nuget: SquaredUp.HubSpot.NET, 0.5.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SquaredUp.HubSpot.NET as a Cake Addin
#addin nuget:?package=SquaredUp.HubSpot.NET&version=0.5.0

// Install SquaredUp.HubSpot.NET as a Cake Tool
#tool nuget:?package=SquaredUp.HubSpot.NET&version=0.5.0

NuGet

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 Compatible and additional computed target framework versions.
.NET Framework net451 is compatible.  net452 was computed.  net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.6.17 253,856 8/3/2018
0.6.16 1,821 7/31/2018
0.6.15 8,424 6/5/2018
0.6.14 2,107 5/2/2018
0.6.13 1,802 5/1/2018
0.6.10 1,749 5/1/2018
0.5.5 1,768 4/16/2018
0.5.4 2,098 3/9/2018
0.5.3 1,728 2/24/2018
0.5.1.8 1,665 2/23/2018
0.5.1 1,667 2/22/2018
0.5.0 1,776 2/22/2018
0.4.0 1,735 2/20/2018
0.3.0 1,780 2/13/2018
0.2.0 1,685 2/9/2018
0.1.0 1,787 2/2/2018

0.5