Code Monkey home page Code Monkey logo

Comments (6)

clarkd avatar clarkd commented on June 27, 2024 1

Hi Chris - thanks for reaching out!

That endpoint looks it would work well and would be a great addition to the wrapper. I'd suggest adding it as a new endpoint - overall, we're trying to mirror the HubSpot API and hence the GetByEmail() method still has its place!

from hubspot.net.

clarkd avatar clarkd commented on June 27, 2024 1

I'll shortly be releasing v0.6.17 which includes the Search endpoint that @chrisbaldauf mentioned - thanks to @Mark-RSK!

from hubspot.net.

clarkd avatar clarkd commented on June 27, 2024

from hubspot.net.

chrisbaldauf avatar chrisbaldauf commented on June 27, 2024

👋 Chris from HubSpot here.

You may be interested in using the Contacts Search API Endpoint, which I've confirmed will not throw an exception if you search for an email that doesn't exist, but rather returns a 200 HTTP status code. The existing GetByEmail method could be updated to call that endpoint, or a new Search method could be added to maintain backward compatibility for existing callers of the GetByEmail method.

$ curl "https://api.hubapi.com/contacts/v1/search/[email protected]&hapikey=$HAPIKEY"
{
  "query": "[email protected]",
  "offset": 0,
  "has-more": false,
  "total": 0,
  "contacts": []
}

I'd be more than happy to take a look at a PR for this if someone has the time to put one together.

from hubspot.net.

clarkd avatar clarkd commented on June 27, 2024

We just released version 0.6.16 which includes a contact CreateOrUpdate method which might be helpful here too if that's what you were trying to do?

from hubspot.net.

Mark-RSK avatar Mark-RSK commented on June 27, 2024

Glad to help. This library has saved me a load of time 👍

from hubspot.net.

Related Issues (20)

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.