Comments (6)
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.
I'll shortly be releasing v0.6.17 which includes the Search endpoint that @chrisbaldauf mentioned - thanks to @Mark-RSK!
from hubspot.net.
from hubspot.net.
👋 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.
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.
Glad to help. This library has saved me a load of time 👍
from hubspot.net.
Related Issues (20)
- Deal Close Date seems to be wrong type.
- HubSpotOAuthApi Authorize and Refresh Methods Return Null Token with Valid Input
- New nuget release? HOT 1
- Missing API - Best practice to contribute
- Removal of flurl broke everything. Bad query strings.
- "Engagement type cannot be null" while creating engagement. HOT 1
- Using custom properties dynamically
- v0.8.13 Released to NuGet? HOT 4
- RestSharp HOT 1
- Replacement Project
- Upload File Responses with Empty JSON
- StatusCode is private
- Most Updated/Maintained Fork? HOT 4
- Private App Support
- Endpoint not found and Bearer token not set
- HubSpot phasing out API for Private App HOT 4
- Contact Get Requests does not return 'CreatedAt' and 'UpdatedAt' HOT 1
- This hapikey doesn't exist.","correlationId":
- Map date time properties HOT 1
- Create Deals with Line Items HOT 1
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 hubspot.net.