This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
from hubspot import HubSpot | |
from hubspot.crm.products import ( | |
PublicObjectSearchRequest, | |
ApiException as productApiException, | |
) | |
from hubspot.crm.line_items import ( | |
BatchInputSimplePublicObjectInput, | |
ApiException as lineItemApiException, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This custom code action is intended to solve the problem when a user is entering two different | |
email adresses in the configurator and the chargebee dropin. As a result, two contacts are created. | |
One has the custom objects and the other one has the deal associated. | |
Buy looking for the Hash of the Deal of contacts with a Deal but without custom objects, | |
we determin the other contact ID and merge them together. | |
""" | |
import os | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
accent: "#8D8F9E" | |
background: "#272938" | |
foreground: "#DEE0EF" | |
details: "darker" | |
terminal_colors: | |
normal: | |
black: "#363847" | |
red: "#D1918F" | |
green: "#AAC9D4" | |
yellow: "#EDD5D6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First Name | Last Name | Email Address | |
---|---|---|---|
Lorelai | Gilmore | [email protected] | |
Leslie | Knope | [email protected] | |
Eleanor | Shellstrop | [email protected] | |
Luke | Danes | [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import requests | |
import json | |
from random import randint | |
ticketCount = 0 | |
def main(event): | |
# Create a ticket ID for your event | |
global ticketCount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from pprint import pprint | |
from hubspot import HubSpot | |
def main(event): | |
# Change the Object Type and Association Type to your custom object | |
customObjectType = "2-XXXXXXXXX" | |
associationType = "contact_to_CUSTOMOBJECT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Start of HubSpot Embed Code --> | |
<script type="text/javascript" id="hs-script-loader" async defer src="//js-eu1.hs-scripts.com/XXXXXXXX.js">/*<![CDATA[*//*]]>*/</script> | |
<!-- End of HubSpot Embed Code --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import the Hubspot NodeJS Client Library - this will allow us to use the HubSpot APIs | |
const hubspot = require('@hubspot/api-client'); | |
/* | |
This function is called when the custom code action is executed. It takes 2 arguements. The first is the event object which contains information on the currently enrolled object. | |
The second is the callback function which is used to pass data back to the workflow. | |
*/ | |
exports.main = (event, callback) => { | |
// Instantiate a new HubSpot API client using the HAPI key (secret) |