rdstation-ruby-client 0.0.4 → 0.0.5
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/README.md +28 -8
- data/lib/rdstation/client.rb +1 -0
- data/lib/rdstation/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b7a4c99778510e108208f90b32ae15a9e0d17fd
|
4
|
+
data.tar.gz: 82e639874139f4f0989f4c2dffdd4d82fe14c62d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d3dc24bdddd186f3933c3c65cb32f00ff3d48bfc3c67a0dc5bc130064787e85d194c40609d8b23688e61a8783bfb8aad67fe69cebf34809b4d1e1e3ae106f00
|
7
|
+
data.tar.gz: b601e929310add3f122dd92c66919f82614ba3973d33004bf5e03565b7814458d59003261c4e31ed7e3c45a4fa9912573bf50a85a3777b944e8bce59d9dda173
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# RDStation Ruby Client
|
2
2
|
|
3
|
-
|
3
|
+
RDstation ruby wrapper to interact with RDStation API.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -19,16 +19,33 @@ Or install it yourself as:
|
|
19
19
|
## Usage
|
20
20
|
|
21
21
|
### Creating a Lead
|
22
|
-
|
23
|
-
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
lead_info = {
|
25
|
+
email: 'joe@foo.bar',
|
26
|
+
name: 'Joe foo',
|
27
|
+
empresa: 'A random Company',
|
28
|
+
cargo: 'Developer',
|
29
|
+
identificador: 'nome_da_conversao'
|
30
|
+
}
|
31
|
+
|
32
|
+
rdstation_client = RDStation::Client.new('rdstation_token', 'auth_token')
|
33
|
+
rdstation_client.create_lead(lead_info)
|
34
|
+
```
|
24
35
|
|
25
36
|
### Changing a Lead
|
26
|
-
|
27
|
-
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
rdstation_client = RDStation::Client.new('rdstation_token', 'auth_token')
|
40
|
+
rdstation_client.change_lead('joe@foo.bar', lifecycle_stage: 1, opportunity: true})
|
41
|
+
```
|
28
42
|
|
29
43
|
### Change Lead Status
|
30
|
-
|
31
|
-
|
44
|
+
|
45
|
+
```ruby
|
46
|
+
rdstation_client = RDStation::Client.new('rdstation_token', 'auth_token')
|
47
|
+
rdstation_client.change_lead_status(email: 'joe@foo.bar', status: 'won', value: 999)
|
48
|
+
```
|
32
49
|
|
33
50
|
|
34
51
|
## Contributing
|
@@ -39,6 +56,9 @@ Or install it yourself as:
|
|
39
56
|
4. Push to the branch (`git push origin my-new-feature`)
|
40
57
|
5. Create new Pull Request
|
41
58
|
|
59
|
+
## Maintainer
|
60
|
+
[Nando Sousa](mailto:fernando.sousa@resultadosdigitais.com.br)
|
61
|
+
|
42
62
|
## Reference
|
43
63
|
|
44
64
|
You can check out RDstation's integration (pt-BR) documentation here:
|
data/lib/rdstation/client.rb
CHANGED
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.5
|
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:
|
11
|
+
date: 2016-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
147
|
version: '0'
|
148
148
|
requirements: []
|
149
149
|
rubyforge_project:
|
150
|
-
rubygems_version: 2.
|
150
|
+
rubygems_version: 2.4.8
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
153
|
summary: Ruby API wrapper for RD Station
|