rdstation-ruby-client 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 156b5afbf3ad353689c7a3b6cecfce1017c82445
4
- data.tar.gz: 52cf5bd5588fe7c12a975c8a6cfc51aed8020c12
3
+ metadata.gz: 8f05e3bb0cc97936927b8a13b65bb8d0b2e3be9c
4
+ data.tar.gz: 4c439967950ac138283f458f2d390e252be49307
5
5
  SHA512:
6
- metadata.gz: 9a90ddedb2724faf1c52ba185b9cfba014e97df9afd74601fefe988892383c95c625afc717d098f23b187c929f364b725506bbeb993ab7d0107995a2c36e4210
7
- data.tar.gz: 2f4d19b3307e67ace4684fc8e0ad2af170f79f2fec5a29ae3713afb29126fb6ad1b256b6b638a812b5c035965ca749c84770312e0162a45feeff62102a9fcbb4
6
+ metadata.gz: a2de9a8366104abe9d80ea481e375af59c204b7f7806545388347464e20971d7af0caf2906d05256bcdc57140079b3e9610daf5817d54499a04a3e57515eac26
7
+ data.tar.gz: ffe014fd6aba574d1740c64c2135fb3ea1dfea75bb6fb6197b12cf28bcaccb762ae8dcb966b05376fe8a82aa1e0be0ef0d89d59da57d74b0b26490601363512b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rdstation-ruby-client (0.0.3)
4
+ rdstation-ruby-client (0.0.4)
5
5
  httparty (~> 0.12)
6
6
 
7
7
  GEM
@@ -51,3 +51,6 @@ DEPENDENCIES
51
51
  turn
52
52
  vcr
53
53
  webmock
54
+
55
+ BUNDLED WITH
56
+ 1.10.3
@@ -1,6 +1,6 @@
1
1
  module RDStation
2
2
  #
3
- # Mais informações em https://www.rdstation.com.br/docs/api
3
+ # Mais informações em http://ajuda.rdstation.com.br/hc/pt-br/articles/204526429-Guia-de-integra%C3%A7%C3%B5es-com-o-RD-Station
4
4
  #
5
5
  class Client
6
6
  include HTTParty
@@ -12,23 +12,30 @@ module RDStation
12
12
  end
13
13
 
14
14
  #
15
- # A hash de lead pode conter os parametros
16
- # (requerido) :identificador
17
- # (requerido) :email
18
- # :nome
19
- # :empresa
20
- # :cargo
21
- # :telefone
22
- # :celular
23
- # :website
24
- # :twitter
25
- # :c_utmz
15
+ # A hash do Lead pode conter os seguintes parâmetros:
16
+ # (obrigatório) :email
17
+ # :identificador
18
+ # :nome
19
+ # :empresa
20
+ # :cargo
21
+ # :telefone
22
+ # :celular
23
+ # :website
24
+ # :twitter
25
+ # :c_utmz
26
+ # :created_at
27
+ # :tags
28
+ #
29
+ # Caso algum parâmetro não seja identificado como campo padrão ou como
30
+ # campo personalizado, este parâmetro desconhecido será gravado nos
31
+ # "Detalhes do Lead".
26
32
  #
27
33
  def create_lead(lead_hash)
28
34
  lead_hash = rdstation_token_hash.merge(lead_hash)
29
35
  lead_hash = lead_hash.merge(identifier_hash) unless lead_hash.has_key?(:identificador)
30
36
  post_with_body("/conversions", {:body => lead_hash})
31
37
  end
38
+ alias_method :update_lead_info, :create_lead
32
39
 
33
40
  #
34
41
  # param lead:
@@ -1,3 +1,3 @@
1
1
  module RDStation
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdstation-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo L F Casaretto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-15 00:00:00.000000000 Z
11
+ date: 2015-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler