rds_pdrive 0.0.1 → 0.0.2
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 +1 -1
- data/lib/rds_pdrive/integrator.rb +2 -0
- data/lib/rds_pdrive/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dce24e0e336da22f4ea6621bfe7602eac2622a84
|
4
|
+
data.tar.gz: 88065447f56763fd7bfd83c67aefb2f97ea314b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a40fb8137472aa46abd5c36e517dc1f2da8045553b57abdfd453c4890db4b15b49cb9a8cbc5e25a0daea0a81d727acf39ee3341bc11865582fd71914dbeea752
|
7
|
+
data.tar.gz: 0df2c275120aaa06b3773464fe9cc4d7bdd1d8bf9f70de8982e124ade82ae301a80296efc506e03825eee32110eb05fec763c6a07d59f48f32aa062130de5064
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ Or install it yourself as:
|
|
24
24
|
|
25
25
|
For Authenticated in account is passed the email and password in the construtor of the class Integrator as in the example:
|
26
26
|
|
27
|
-
integrator = Integrator('emailteste@gmail.com', 'pass123pass')
|
27
|
+
integrator = Integrator.new('emailteste@gmail.com', 'pass123pass')
|
28
28
|
|
29
29
|
For list all persons of the authenticated account use the function get_all_leads of the class Integrator as in the example:
|
30
30
|
|
@@ -14,10 +14,12 @@ module RdsPdrive
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def get_all_leads
|
17
|
+
|
17
18
|
uri = URI.parse("#{@url}persons?api_token=#{@token}")
|
18
19
|
response = Net::HTTP.get(uri)
|
19
20
|
objeto_json = JSON.parse(response)
|
20
21
|
data = objeto_json['data']
|
22
|
+
@leads = []
|
21
23
|
data.each do |d|
|
22
24
|
lead = Lead.new(d['name'], "", d['email'][0]['value'], "", d['phone'][0]['value'])
|
23
25
|
@leads << lead
|
data/lib/rds_pdrive/version.rb
CHANGED