SquaredUp.HubSpot.NET 0.5.0

C# .NET Wrapper around the common HubSpot APIs.

There is a newer version of this package available.
See the version list below for details.
Install-Package SquaredUp.HubSpot.NET -Version 0.5.0
dotnet add package SquaredUp.HubSpot.NET --version 0.5.0
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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.

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.

Release Notes

0.5

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.6.17 48,316 8/3/2018
0.6.16 293 7/31/2018
0.6.15 6,189 6/5/2018
0.6.14 423 5/2/2018
0.6.13 254 5/1/2018
0.6.10 247 5/1/2018
0.5.5 317 4/16/2018
0.5.4 475 3/9/2018
0.5.3 295 2/24/2018
0.5.1.8 273 2/23/2018
0.5.1 249 2/22/2018
0.5.0 349 2/22/2018
0.4.0 290 2/20/2018
0.3.0 322 2/13/2018
0.2.0 285 2/9/2018
0.1.0 312 2/2/2018
Show less