HubSpot / hubspot-api-ruby

HubSpot API Ruby Client Libraries for V3 version of the API
Apache License 2.0
115 stars 57 forks source link

merge_api doesn't exist #355

Closed Roguelazer closed 1 month ago

Roguelazer commented 1 month ago

The documentation for merging contacts has the following ruby example code:

require 'hubspot-api-client'

api_client = Hubspot::Client.new(access_token: 'YOUR_ACCESS_TOKEN')

body = { objectIdToMerge: "string", primaryObjectId: "string" }
api_response = api_client.crm.contacts.merge_api.merge(body: body)
puts api_response

Fun fact: there is no merge_api. From reading the (mostly inscruitable) auto-generated code, it appears that the correct thing would be something like

api_response = api_client.crm.contacts.public_object_api.merge(body: body)
Roguelazer commented 1 month ago

Oh, never mind, this was just added in 19.0 which was landed