{"id":19792748,"url":"https://github.com/devpro/hubspot-dotnet","last_synced_at":"2026-03-10T13:04:55.358Z","repository":{"id":37884686,"uuid":"246357952","full_name":"devpro/hubspot-dotnet","owner":"devpro","description":".NET Core wrappers for the HubSpot REST API ","archived":false,"fork":false,"pushed_at":"2023-01-12T04:04:33.000Z","size":727,"stargazers_count":3,"open_issues_count":20,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-13T08:57:52.980Z","etag":null,"topics":["api-client","dotnet","dotnet-core","dotnet-standard","hubspot"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devpro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-10T16:55:33.000Z","updated_at":"2023-03-05T00:12:04.000Z","dependencies_parsed_at":"2023-02-09T09:50:11.478Z","dependency_job_id":null,"html_url":"https://github.com/devpro/hubspot-dotnet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devpro/hubspot-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpro%2Fhubspot-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpro%2Fhubspot-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpro%2Fhubspot-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpro%2Fhubspot-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devpro","download_url":"https://codeload.github.com/devpro/hubspot-dotnet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpro%2Fhubspot-dotnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30334412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T12:41:07.687Z","status":"ssl_error","status_checked_at":"2026-03-10T12:41:06.728Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","dotnet","dotnet-core","dotnet-standard","hubspot"],"created_at":"2024-11-12T07:07:52.927Z","updated_at":"2026-03-10T13:04:55.337Z","avatar_url":"https://github.com/devpro.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# HubSpot .NET\n\n[![Build Status](https://dev.azure.com/devprofr/open-source/_apis/build/status/libraries/hubspot-dotnet-ci?branchName=master)](https://dev.azure.com/devprofr/open-source/_build/latest?definitionId=37\u0026branchName=master)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=devpro.hubspot.dotnet\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=devpro.hubspot.dotnet)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=devpro.hubspot.dotnet\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=devpro.hubspot.dotnet)\n\n.NET Core wrappers for the [HubSpot](https://www.hubspot.com/) API.\n\nPackage | Version | Type\n------- | ------- | ----\n`Devpro.Hubspot.Abstractions` | [![Version](https://img.shields.io/nuget/v/Devpro.Hubspot.Abstractions.svg)](https://www.nuget.org/packages/Devpro.Hubspot.Abstractions/) | .NET Standard 2.1\n`Devpro.Hubspot.Client` | [![Version](https://img.shields.io/nuget/v/Devpro.Hubspot.Client.svg)](https://www.nuget.org/packages/Devpro.Hubspot.Client/) | .NET Standard 2.1\n\n## Requirements\n\n- Have an HubSpot developer account ([create one](https://developers.hubspot.com/))\n\n## How to use\n\n- Have the [NuGet package](https://www.nuget.org/packages/Devpro.Hubspot.Client) in your csproj file (can be done manually, with Visual Studio or through nuget command)\n\n```xml\n\u003cProject Sdk=\"Microsoft.NET.Sdk\"\u003e\n  \u003cItemGroup\u003e\n    \u003cPackageReference Include=\"Devpro.Hubspot.Client\" Version=\"X.Y.Z\" /\u003e\n  \u003c/ItemGroup\u003e\n\u003c/Project\u003e\n```\n\n- Make the code changes to be able to use the library (config \u0026 service provider)\n\n```csharp\n// implement the configuration interface (for instance in a configuration class in your app project) or use DefaultHubspotClientConfiguration\nusing Devpro.Hubspot.Client;\n\npublic class AppConfiguration : IHubspotClientConfiguration\n{\n    // explicitely choose where to take the configuration for Hubspot REST API (this is the responibility of the app, not the library)\n}\n\n// configure your service provider (for instance in your app Startup class)\nusing Devpro.Hubspot.Client.DependencyInjection;\n\nvar services = new ServiceCollection()\n  .AddHubspotClient(Configuration);\n```\n\n- Use the repositories (enjoy a simple, yet optimized, HTTP client)\n\n```csharp\nusing Devpro.Hubspot.Abstractions;\n\nprivate readonly IContactRepository _contactRepository;\n\npublic MyService(IContactRepository contactRepository)\n{\n    _contactRepository = contactRepository;\n}\n\npublic async Task GetContacts()\n{\n    var contacts = await _contactRepository.FindAllAsync();\n}\n```\n\n## How to build\n\nOnce the git repository has been cloned, execute the following commands from the root directory:\n\n```bash\ndotnet restore\ndotnet build\n```\n\n## How to test\n\nFor integration tests, to manage the configuration (secrets) you can create a file at the root directory called `Local.runsettings` or define them as environment variables:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cRunSettings\u003e\n  \u003cRunConfiguration\u003e\n    \u003cEnvironmentVariables\u003e\n      \u003cHubspot__Sandbox__BaseUrl\u003exxx\u003c/Hubspot__Sandbox__BaseUrl\u003e\n      \u003cHubspot__Sandbox__ApiKey\u003exxx\u003c/Hubspot__Sandbox__ApiKey\u003e\n      \u003cHubspot__Sandbox__ApplicationId\u003exxx\u003c/Hubspot__Sandbox__ApplicationId\u003e\n      \u003cHubspot__Sandbox__ClientId\u003exxx\u003c/Hubspot__Sandbox__ClientId\u003e\n      \u003cHubspot__Sandbox__ClientSecret\u003exxx\u003c/Hubspot__Sandbox__ClientSecret\u003e\n      \u003cHubspot__Sandbox__RedirectUrl\u003exxx\u003c/Hubspot__Sandbox__RedirectUrl\u003e\n    \u003c/EnvironmentVariables\u003e\n  \u003c/RunConfiguration\u003e\n\u003c/RunSettings\u003e\n```\n\nAnd execute all tests (unit and integration ones):\n\n```bash\ndotnet test --settings Local.runsettings\n```\n\n## References\n\n- [HubSpot API Overview](https://developers.hubspot.com/docs/overview)\n- [adimichele/hubspot-ruby](https://github.com/adimichele/hubspot-ruby)\n- [HubSpot/hubspot-php](https://github.com/HubSpot/hubspot-php)\n- [hubspot-net/HubSpot.NET](https://github.com/hubspot-net/HubSpot.NET): outdated .NET client, no recent CI with code coverage, not compatible with dependency injection and not using .NET best practices (HTTP client, naming convention, clean code, editorconfig)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevpro%2Fhubspot-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevpro%2Fhubspot-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevpro%2Fhubspot-dotnet/lists"}