PipedrivePUT 1.1.17 → 1.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -0
- data/lib/PipedrivePUT/persons.rb +20 -0
- data/lib/PipedrivePUT/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: 8251e5a10fd0d1eafc20551e96a5c77b42c9e81e
|
4
|
+
data.tar.gz: 722d7b138ffdcf9b34c627b6bb0967070ef7131f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a165be35bb2bf57636dce7852fbc45730f5de1bbf8bf01376de7d65a56a69f2805b21baf52b7ab1d0e89bfbf08b8dee4eb8c1b1f5b661a7cfa69cd169152a81
|
7
|
+
data.tar.gz: 66a5a2ae2edd6dc899d51adb55c01bb2b40142cd9903c1bce3f5541680fc94a421cf550b7dbffe83f35f49618b60058fb5fb00d8ed433423f2705320ed4f3acb
|
data/README.md
CHANGED
@@ -168,6 +168,18 @@ Delete a persons from Pipedrive
|
|
168
168
|
PipedrivePUT::Persons.deletePerson(< id >)
|
169
169
|
```
|
170
170
|
|
171
|
+
Update a persons from Pipedrive
|
172
|
+
|
173
|
+
```ruby
|
174
|
+
PipedrivePUT::Persons.updatePerson(< id >, < additional params >)
|
175
|
+
```
|
176
|
+
|
177
|
+
Example
|
178
|
+
|
179
|
+
```ruby
|
180
|
+
PipedrivePUT::Persons.updatePerson(10, :email => "test@test.com")
|
181
|
+
```
|
182
|
+
|
171
183
|
|
172
184
|
## Pipelines
|
173
185
|
|
data/lib/PipedrivePUT/persons.rb
CHANGED
@@ -71,6 +71,26 @@ require 'httparty'
|
|
71
71
|
response = HTTParty.delete(@url.to_s)
|
72
72
|
end
|
73
73
|
|
74
|
+
|
75
|
+
#Update an Organization
|
76
|
+
def self.updatePerson(id, options = {})
|
77
|
+
@url = 'https://api.pipedrive.com/v1/persons/' + id.to_s + '?api_token=' + @@key.to_s
|
78
|
+
|
79
|
+
if (!options.nil?)
|
80
|
+
|
81
|
+
options.merge!(:id => id)
|
82
|
+
#puts options
|
83
|
+
|
84
|
+
#puts '----------------------'
|
85
|
+
|
86
|
+
response = HTTParty.put(@url.to_s, :body => options.to_json, :headers => {'Content-type' => 'application/json'})
|
87
|
+
#puts '----------------------'
|
88
|
+
#puts response
|
89
|
+
|
90
|
+
end
|
91
|
+
|
92
|
+
end
|
93
|
+
|
74
94
|
end
|
75
95
|
|
76
96
|
end
|
data/lib/PipedrivePUT/version.rb
CHANGED