Comments (7)
with go generate
it includes the header but the generated code is broken. I fixed it manually and it works
from go-hubspot.
Hey @dcu, first of all, with the upcoming deprecation for HubSpot API keys, I think I'll fix this by moving to private app API tokens. Will this work for you?
Also, I'll look into fixing the code generator. Thanks for reporting
from go-hubspot.
Give #5 a shot and let me know if you run into any additional issues.
from go-hubspot.
this is failing:
./main.go:55:10: hubspotAPIKey.Apply(context.Background()) (no value) used as value
./main.go:55:30: cannot use context.Background() (value of type context.Context) as type hubspot.AuthorizationRequest in argument to hubspotAPIKey.Apply
./main.go:96:10: hubspotAPIKey.Apply(context.Background()) (no value) used as value
./main.go:96:30: cannot use context.Background() (value of type context.Context) as type hubspot.AuthorizationRequest in argument to hubspotAPIKey.Apply
I'm doing:
hubspot.NewAPIKeyAuthorizer("").Apply(context.Background())
how's the new way to do this?
EDIT: found the answer in the README
from go-hubspot.
it works, thanks!
from go-hubspot.
the access token for the private app works as well. thanks for the tip
from go-hubspot.
Yep, no problem. Sorry for changing the API out from under you. Once this package gets more utilized, I'm sure we'll settle into something stable.
from go-hubspot.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-hubspot.