minor change

This commit is contained in:
Denise_Datinguinoo committed 2026-08-26 12:36:31 +02:00
commit 57c28b2806
5 files changed
+54 -10

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"token_type": "bearer",
"refresh_token": "dfdb8172-1072-4a95-8122-6f4be5dbcbaf",
"access_token": "CLHLouuDNBInQlNQMl8kQEwrAhoACAcCAhICEgkEHgEBAQEBAQEbAQIBLh4BIAEgGI-0ogEgopooKMKUazIU5cKFS_eZB4XuJyBRFHi2RVmSIuE6a0JTUDJfJEBMKwNcAAeOAgTLAhP1AgaYAwejAwaBBQaJBggTGRobH4oBiwGQAbsB3gH6AfsB_AGVApYCtgLHAv8DgASEBIUEowSkBKUEpwSoBN0E4QbiBuMGlZoFrO8F3_cFgvkFg_kF_PUIQhQXi_C9jOzz6-c_Unzntulz_oHcC0oDbmExUgBaAGAAaKKaKHAAeAA",
"access_token": "CPDM2euDNBInQlNQMl8kQEwrAhoACAcCAhICEgkEHgEBAQEBAQEbAQIBLh4BIAEgGI-0ogEgopooKMKUazIUAyadDK38t_Nd7afu92XPlJWNIAo6a0JTUDJfJEBMKwNcAAeOAgTLAhP1AgaYAwejAwaBBQaJBggTGRobH4oBiwGQAbsB3gH6AfsB_AGVApYCtgLHAv8DgASEBIUEowSkBKUEpwSoBN0E4QbiBuMGlZoFrO8F3_cFgvkFg_kF_PUIQhSC4VGhsI_4_JW1pwepVd_QSHEyGEoDbmExUgBaAGAAaKKaKHAAeAA",
"hub_id": 2660879,
"scopes": [
"crm.lists.read",
+48 -4
View File
@@ -1,4 +1,48 @@
◇ injected env (0) from .env // tip: ⌘ suppress logs { quiet: true }
Retrieving data from Keystone...
Error fetching the data: Keystone HTTP Error 403 (Forbidden): {"error":"Unauthorized","code":"401","message":"key missmatch"}
Error in processing data: Keystone HTTP Error 403 (Forbidden): {"error":"Unauthorized","code":"401","message":"key missmatch"}
◇ injected env (1) from .env // tip: ◈ secrets for agents [www.dotenvx.com]
Retrieving data from Keystone... 2026-08-26T09:15:46.604Z 2026-08-26T09:16:01.807Z false
DateTime saved successfully in file last-modified-date.json
Data retrieved successfully!
Now Connecting to Hubspot...
getAccessToken
getAccessToken
New access token generated
Hubspot connection is ready!
Connection successful!
Batch successfully created!
{
"completedAt": "2026-08-26T09:16:05.075Z",
"status": "COMPLETE",
"startedAt": "2026-08-26T09:16:04.941Z",
"results": [
{
"id": "244396741787",
"properties": {
"corso_keystone": "Italian Culinary Program",
"createdate": "2026-08-26T08:27:10.610Z",
"email": "videeshasawane@gmail.com",
"firstname": "Videesha ",
"hs_full_name_or_email": "Videesha Sawane",
"hs_is_unworked": "true",
"hs_object_id": "244396741787",
"hs_object_source": "INTEGRATION",
"hs_object_source_id": "1755714",
"hs_object_source_label": "INTEGRATION",
"hs_pipeline": "contacts-lifecycle-pipeline",
"hs_v2_date_entered_current_stage": "2026-08-26T08:27:10.610Z",
"hs_v2_time_in_current_stage": "2026-08-26T08:27:10.610Z",
"lastmodifieddate": "2026-08-26T08:34:13.632Z",
"lastname": "Sawane",
"leadsource": "keystone",
"lifecyclestage": "lead",
"phone": "+91 8454046665"
},
"createdAt": "2026-08-26T08:27:10.610Z",
"updatedAt": "2026-08-26T08:34:13.632Z",
"archived": false,
"url": "https://app.hubspot.com/contacts/2660879/record/0-1/244396741787",
"new": false
}
]
}
HubSpot Batch Response: Contact/s created successfully!
All contacts have been created!
+2 -2
View File
@@ -12,8 +12,8 @@ async function getLeads(lastRunDate, currentDate, unsent, test) {
'Content-type': 'application/json'
},
body: JSON.stringify({
after: lastRunDate,
before: currentDate,
after: lastRunDate.substring(0, 10),
before: currentDate.substring(0, 10),
unsent: unsent, // If this variable is set to 0, then it will show leads that have been marked as seen (old leads)
test: test, // If this is removed or set to 0, then all leads that are returned would be marked as seen. This allows you to only fetch new leads
})
+2 -2
View File
@@ -148,9 +148,9 @@ async function runConnector() {
}
try {
console.log('Retrieving data from Keystone...');
console.log('Retrieving data from Keystone...', lastRunDate, currentDate, isDryRun );
// getLeads(lastRunDate, currentDate, unsent, test)
const unsetValue = 1;
const unsetValue = 0;
const testValue = isDryRun ? 1 : 0;
const leads = await getLeads(lastRunDate, currentDate, unsetValue, testValue);
+1 -1
View File
@@ -1,3 +1,3 @@
{
"lastRun": "2026-08-25T14:25:46.866Z"
"lastRun": "2026-08-26T09:16:01.807Z"
}