diff --git a/sample-apps/timeline-app/src/Helpers/TimelineEventHelper.php b/sample-apps/timeline-app/src/Helpers/TimelineEventHelper.php index 1f0dfab9..c7943884 100644 --- a/sample-apps/timeline-app/src/Helpers/TimelineEventHelper.php +++ b/sample-apps/timeline-app/src/Helpers/TimelineEventHelper.php @@ -16,7 +16,7 @@ public static function createEvent(string $telegramChatId, string $eventTypeCode $request->setId(uniqid()); $request->setEmail(UsersRepository::getEmailByTelegramChatId($telegramChatId)); $request->setEventTemplateId(EventTypesRepository::getHubspotEventIDByCode($eventTypeCode)); - + if (!empty($tokens)) { $request->setTokens($tokens); } diff --git a/sample-apps/trello-integration-app/src/views/readme.php b/sample-apps/trello-integration-app/src/views/readme.php index 0978636c..334b4487 100644 --- a/sample-apps/trello-integration-app/src/views/readme.php +++ b/sample-apps/trello-integration-app/src/views/readme.php @@ -5,7 +5,7 @@

Proceed with the following steps to see trello integration in action:

  1. Associate deal with Trello card using HubSpot interface
  2. -
  3. Map Trello board lists with HubSpot pipeline stages on mappings page
  4. +
  5. Map Trello board lists with HubSpot pipeline stages on mappings page
  6. Move associated trello card to any other mapped earlier board list and check how this affects HubSpot deal stage
diff --git a/sample-apps/webhooks-contacts-app/src/actions/webhooks/init.php b/sample-apps/webhooks-contacts-app/src/actions/webhooks/init.php index 7cf0a830..27df05d3 100644 --- a/sample-apps/webhooks-contacts-app/src/actions/webhooks/init.php +++ b/sample-apps/webhooks-contacts-app/src/actions/webhooks/init.php @@ -16,6 +16,7 @@ ; $appId = getEnvOrException('HUBSPOT_APPLICATION_ID'); +$appUrl = UrlHelper::generateServerUri().'/webhooks/handle.php'; $subscriptions = $webhooksClient->subscriptionsApi()->getAll($appId); @@ -25,7 +26,7 @@ WebhooksHelper::updateSubscriptions($appId, $activeSubscriptions, false); $request = new SettingsChangeRequest(); -$request->setTargetUrl(UrlHelper::generateServerUri().'/webhooks/handle.php'); +$request->setTargetUrl($appUrl); $response = $webhooksClient->settingsApi() ->configure($appId, $request)