Sha256: 226eaa3ca87f9c80b1ce67dc4e4080cc629ef3fb30423e8346aab378311f49f3

Contents?: true

Size: 509 Bytes

Versions: 28

Compression:

Stored size: 509 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::Contacts::SimplePublicObjectInput.new(properties: @properties)
        end
      end
    end
  end
end

Version data entries

28 entries across 14 versions & 1 rubygems

Version Path
hubspot-api-client-7.1.0 sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-7.1.0 sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-7.0.0 sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-7.0.0 sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-6.0.0 sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-6.0.0 sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-5.0.0 sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-5.0.0 sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-4.0.0 sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-4.0.0 sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-3.3.0 sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-3.3.0 sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-3.2.0 sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-3.2.0 sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-3.1.1 sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-3.1.1 sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-3.1.0.pre.beta sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-3.1.0.pre.beta sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-3.0.0.pre.beta sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-3.0.0.pre.beta sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb