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 +4 -4
- data/Gemfile.lock +4 -1
- data/lib/rdstation/client.rb +19 -12
- data/lib/rdstation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f05e3bb0cc97936927b8a13b65bb8d0b2e3be9c
|
4
|
+
data.tar.gz: 4c439967950ac138283f458f2d390e252be49307
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2de9a8366104abe9d80ea481e375af59c204b7f7806545388347464e20971d7af0caf2906d05256bcdc57140079b3e9610daf5817d54499a04a3e57515eac26
|
7
|
+
data.tar.gz: ffe014fd6aba574d1740c64c2135fb3ea1dfea75bb6fb6197b12cf28bcaccb762ae8dcb966b05376fe8a82aa1e0be0ef0d89d59da57d74b0b26490601363512b
|
data/Gemfile.lock
CHANGED
data/lib/rdstation/client.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module RDStation
|
2
2
|
#
|
3
|
-
# Mais informações em
|
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
|
16
|
-
# (
|
17
|
-
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
21
|
-
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#
|
25
|
-
#
|
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:
|
data/lib/rdstation/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|