HubSpot.NET icon indicating copy to clipboard operation
HubSpot.NET copied to clipboard

Missing OAuth Constructor

Open BenMicucci opened this issue 5 years ago • 7 comments

Describe the bug After installing the Nuget package here, I am unable to create a new HubSpotApi project using the OAuth authentication mechanism. I am only able to create the object using an api key, which is not as secure as OAuth.

Repro Steps

  • Install the nuget package (latest version of Hubspot.NET package downloaded is 0.6.17.0)
  • Create a HubSpotApi object, notice that only one constructor option is available.

Expected behavior Two options available when creating a new HubSpotApi object.

BenMicucci avatar Mar 31 '20 14:03 BenMicucci

I'm struggling with the same issue. The package on Nuget is not updated.

brandaogabriel7 avatar Apr 16 '20 12:04 brandaogabriel7

@brandaogabriel7 I wrote a work around using an Azure Function. Message me on LinkedIn & I'd be happy to share some sample code with you - https://www.linkedin.com/in/benjamin-micucci-3b74385b/

I haven't put on my github yet.

BenMicucci avatar Apr 16 '20 13:04 BenMicucci

@BenMicucci Hello Friend. I haven't been able to use the OAuth authentication mechanism. Could you send me your Azure function please. I'm going to send a message to you on LinkedIn.

Thank you in advance.

borisfornaris avatar May 23 '20 12:05 borisfornaris

Any movement on this? Is there a good workaround?

mdunidev avatar Oct 22 '20 19:10 mdunidev

@mdunidev, try this

brandaogabriel7 avatar Oct 27 '20 14:10 brandaogabriel7

@mdunidev, message me on LinkedIn if you have an issues with the code I wrote that @brandaogabriel7 posted above. https://www.linkedin.com/in/benjamin-micucci-3b74385b/

BenMicucci avatar Oct 27 '20 14:10 BenMicucci

Not sure the azure function would work for me.

mdunidev avatar Nov 17 '20 14:11 mdunidev