APIs & Integrations

APear
Participant

Connect to API via oAuth C#

Hi,

I've just checked and this nuget package which is recommended on the documentation doesn't seem to work with oAuth.

hubspot-net/HubSpot.NET: C# .NET Wrapper around the common HubSpot APIs. (github.com)

SquaredUp.HubSpot.NET

 

It says on the sample it does, but once I try to use it, do 

 

var api = new HubSpotApi("clientID", "clientSecret", "HubSpotAppID");

 

It says is expecting an API key instead.

 

Can someone please help?

 

Regards 

0 Upvotes
5 Replies 5
SDevelopment
Participant

Connect to API via oAuth C#

Was there any feedback on this? 

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Connect to API via oAuth C#

Hi @APear 👋 Thanks for reaching out. Hey @0divide @MichaelC @Vidar @gotmike do you have any experience here? 

 

Thank you for taking a look! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

AAva
Member

Connect to API via oAuth C#

Hi! I'm having the same issue as @APear .

I wanted to migrate from API Key To Private app for my solution , I managed to use the private app token for a simple getcontacts call using HttpClient (Bearer autorization and private app token) but I could NOT make it work for HubSpotApi calls that requires ApiKey (i tried  with OAUTH  var api = new HubSpotApi("clientID", "clientSecret", "HubSpotAppID"); It says is expecting an API key instead

I would be grateful for any advice.

APear
Participant

Connect to API via oAuth C#

Thank you @AAva

Glad to know I am not alone here 🙂

APear
Participant

Connect to API via oAuth C#

Hi Jaycee,

Thank you for this. 

Let's hope they can help.