Giter VIP home page Giter VIP logo

Comments (7)

dcu avatar dcu commented on June 1, 2024

with go generate it includes the header but the generated code is broken. I fixed it manually and it works

from go-hubspot.

clarkmcc avatar clarkmcc commented on June 1, 2024

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.

clarkmcc avatar clarkmcc commented on June 1, 2024

Give #5 a shot and let me know if you run into any additional issues.

from go-hubspot.

dcu avatar dcu commented on June 1, 2024

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.

dcu avatar dcu commented on June 1, 2024

it works, thanks!

from go-hubspot.

dcu avatar dcu commented on June 1, 2024

the access token for the private app works as well. thanks for the tip

from go-hubspot.

clarkmcc avatar clarkmcc commented on June 1, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.