Sha256: 669d29bcec9620225a535126b89c24db1eaa6d863fdb3c1e9be4d0541ab5cdb9

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 Bytes

Contents

module RDStation
  class Client
    include HTTParty
    base_uri "https://www.rdstation.com.br"

    def initialize(token)
      @token = token
    end

    def create_lead(lead_hash)
      lead_hash = { :token_rdstation => @token, :identificador => "integração" }.merge(lead_hash)
      self.class.post('/api/1.2/conversions', { :body => lead_hash })
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rdstation-ruby-client-0.0.1 lib/rdstation/client.rb