We'll need to integrate the HubSpot API into the request data form on the search results page to update HubSpot's contact list and its details for each user data request.
Solution or next step
[x] Provide the Hubspot API key and the request data form list ID @davidsmejia
We'll use the production's Hubspot contact list CCDL-data-requesters (no testing account necessary based on 1:1)
[x] Based on the refinebio-frontend script, integrate the HubSpot API in the request data form @nozomione
Create any sub-components or helpers as necessary
[x] Set up the production and staging environmental variables in the next config and Vercel @nozomione
(currently the same API key and list ID is used for both environments)
HUBSPOT_ACCESS_TOKEN
STAGE_HUBSPOT_ACCESS_TOKEN
NOTE:
The CCDL-data-requesters 's List ID and ILS List ID were also added to our password manager under refinebio secret
The Hubspot API version was upgraded from v1 to v3 (doc)
Context
Related issue: https://github.com/AlexsLemonade/refinebio/issues/1738
When users submit the request data form on the search results page (https://github.com/AlexsLemonade/refinebio-web/issues/207), we'll send their email address to the Hubspot API to update our contact list.
Problem or idea
We'll need to integrate the HubSpot API into the request data form on the search results page to update HubSpot's contact list and its details for each user data request.
Solution or next step
CCDL-data-requesters
(no testing account necessary based on 1:1)refinebio-frontend
script, integrate the HubSpot API in the request data form @nozomioneHUBSPOT_ACCESS_TOKEN
STAGE_HUBSPOT_ACCESS_TOKEN
NOTE:
CCDL-data-requesters
'sList ID
andILS List ID
were also added to our password manager under refinebio secretv1
tov3
(doc)