PipedrivePUT 1.1.17 → 1.1.18

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: 5dc4615285378436a3a121a413cc48765570be01
4
- data.tar.gz: d9a654fd7575993202f0b95455f450910cc72a65
3
+ metadata.gz: 8251e5a10fd0d1eafc20551e96a5c77b42c9e81e
4
+ data.tar.gz: 722d7b138ffdcf9b34c627b6bb0967070ef7131f
5
5
  SHA512:
6
- metadata.gz: c0adbe1f8908d5fb30eca26ad6254ad60885311c2e93af2afe8e454501bd11afe426b9b3355abe534ace3af3586ce921bc3598cf14c9daa18fc1a510a7e8bc11
7
- data.tar.gz: 39afd5b3365c0013a299fb2a815db92a58dd330f5b5eea8cab40a6a618c2eeb528ffa7be06eacee54a596e1d2eb7b0c57852b9c2a054bd9d9e7d164e4d301358
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module PipedrivePUT
2
- VERSION = "1.1.17"
2
+ VERSION = "1.1.18"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: PipedrivePUT
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.17
4
+ version: 1.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - JakePens71