Sha256: 603650abdf5cc35b6a17c41306200f0c7e63f46e048aa3f9366695346672402a
Contents?: true
Size: 508 Bytes
Versions: 2
Compression:
Stored size: 508 Bytes
Contents
module Services module Hubspot module Contacts class Create def initialize(properties) @properties = properties end def call create_api = ::Hubspot::Crm::Contacts::BasicApi.new create_api.create(body: contact_input, auth_names: 'oauth2') end private def contact_input @contact_input ||= ::Hubspot::Crm::Objects::SimplePublicObjectInput.new(properties: @properties) end end end end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hubspot-api-client-2.0.0 | sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb |
hubspot-api-client-2.0.0 | sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb |