

Grouparoo can help you to sync data from your warehouse to Hubspot easily and efficiently. You can use Hubspot to manage marketing, sales, and customer service tasks.

Hubspot is a customer relationship management (CRM) tool. This guide will show you how to work with the Hubspot Integration to create a Destination to export your data. NPM: Hubspot Integration enables you to export users to Hubspot. ]) ) Contributing Run spec tests vendor/bin/phpspec run “duplicateValidationScope” => “ EXACT_FOLDER” “duplicateValidationStrategy” => “ NONE”, $response = $hubSpot-> files()-> filesApi()-> upload( $file, null, ‘/’, null, null, json_encode([ $hubSpot-> crm()-> contacts()-> basicApi()-> update( $contactId, $newProperties) Get custom objects page: $hubSpot-> crm()-> objects()-> basicApi()-> getPage( HubSpot\ Crm\ ObjectType:: CONTACTS) File uploading $file = new \ SplFileObject(“file path”) $newProperties-> setProperties( $ _POST) $contact = $hubSpot-> crm()-> contacts()-> basicApi()-> create( $contactInput) Update a contact: $newProperties = new \ HubSpot\ Client\ Crm\ Contacts\ Model\ SimplePublicObjectInput() CollectionResponseWithTotalSimplePublicObject $contactsPage $contactsPage = $hubSpot-> crm()-> contacts()-> searchApi()-> doSearch( $searchRequest) Create a contact: $contactInput = new \ HubSpot\ Client\ Crm\ Contacts\ Model\ SimplePublicObjectInput() $searchRequest = new \ HubSpot\ Client\ Crm\ Contacts\ Model\ PublicObjectSearchRequest() $filterGroup = new \ HubSpot\ Client\ Crm\ Contacts\ Model\ FilterGroup()

$hubSpot = \ HubSpot\ Factory:: createWithAccessToken( 'access-token', $client) Get contacts page: $response = $hubSpot-> crm()-> contacts()-> basicApi()-> getPage() Search for a contact: $filter = new \ HubSpot\ Client\ Crm\ Contacts\ Model\ Filter() \ HubSpot\ Delay:: getExponentialDelayFunction( 2) \ HubSpot\ RetryMiddlewareFactory:: createInternalErrorsMiddleware( \ HubSpot\ Delay:: getConstantDelayFunction() \ HubSpot\ RetryMiddlewareFactory:: createRateLimitMiddleware( $handlerStack = \ GuzzleHttp\ HandlerStack:: create() Please note that Apps using OAuth are only subject to a limit of 100 requests every 10 seconds. It provides an ability to turn on retry for failed requests with statuses 429 or 500. $hubSpot = \ HubSpot\ Factory:: createWithAccessToken( 'access-token', $client) API Client comes with Middleware for implementation of Rate and Concurrent Limiting. Please, take a look at our Sample apps Quickstart To instantiate API Client using HubSpot API Key use Factory: $hubSpot = \ HubSpot\ Factory:: createWithApiKey( 'api-key') or using OAuth2 access token: $hubSpot = \ HubSpot\ Factory:: createWithAccessToken( 'access-token') also you can pass custom client to Factory: $client = new \ GuzzleHttp\ Client() PHP HubSpot API v3 SDK(Client) files Installation composer require hubspot/api-client Sample apps
