10to8 / 10to8-enterprise-api-hubspot-demo Goto Github PK
View Code? Open in Web Editor NEWExample CRM integration for syncing Contacts between 10to8 and Hubspot using the 10to8 Enterprise API.
License: MIT License
Example CRM integration for syncing Contacts between 10to8 and Hubspot using the 10to8 Enterprise API.
License: MIT License
HubSpot have recently renamed their scopes from 'contacts' to 'crm.objects.contacts.write crm.objects.contacts.read', but support the old scopes for older HubSpot accounts.
We have updated the scopes to match the latest ones offered with fresh HubSpot account sign-up.
For simplicity, this demo is handling these asynchronously using multiprocessing
In a production environment, a task queue such as Celery is recommended.
If an unexpected API error occurs whilst syncing a Customer/Contact, we do not update the Sync Status field to indicate that an error had occurred.
(Expected error scenarios are handled and the "Sync Status" is updated where appropriate).
Note: Studying the flask server log would show the error.
10to8 provides a means of intervening if a deletion will result in a customer with future bookings being deleted.
See: https://10to8.com/api/enterprise/v2/#operation/patch-api-enterprise-v2-customer-id
For simplicity this demo is not making use of this mechanism - we've disabled the conflict detection with force=True on the Customer Delete endpoint.
We've not integrated with HubSpot's GDPR endpoints, as they are in Beta and subject to change.
https://developers.hubspot.com/docs/api/crm/contacts
To configure this demo for use, API keys are stored in a config file.
In a production environment, consider using a secure secret management system instead.
For simplicity, this demo does not restrict access to the webhook callback URLs hosted on this flask server.
For a production environment, the following may be worth considering:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.