PipedrivePUT 1.1.27 → 1.1.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -0
- data/lib/PipedrivePUT.rb +3 -0
- data/lib/PipedrivePUT/activity-type.rb +16 -0
- data/lib/PipedrivePUT/activity.rb +16 -0
- data/lib/PipedrivePUT/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1007adb795ec0314951221ff300431395d013277
|
4
|
+
data.tar.gz: f1840cfb664ba73cfafe9221011aa6f09d11c242
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f67ac56dd25b98955e1bb48ee8fd66d33a89edc4ad321590d5f0523e9c51e6ace1abdccb3146f0d8a209a37c75a7947a505e7d4a5b73602f2f7a700359af2c9d
|
7
|
+
data.tar.gz: 1eea1851be992271e38629d118685c0eb890ef33b6613d302e1bfe34ebb3d90cf9ef8aa40f27fca5d69f37fcad730c4d4058fd21890e6a7dd6091d814e16c655
|
data/README.md
CHANGED
@@ -180,6 +180,20 @@ Example
|
|
180
180
|
PipedrivePUT::Persons.updatePerson(10, :email => "test@test.com")
|
181
181
|
```
|
182
182
|
|
183
|
+
## Activities
|
184
|
+
|
185
|
+
Get all Activites per user
|
186
|
+
```ruby
|
187
|
+
PipedrivePUT::Activity.getActivity(< user_id >)
|
188
|
+
```
|
189
|
+
|
190
|
+
## Activity Types
|
191
|
+
|
192
|
+
Get all Activity Types
|
193
|
+
```ruby
|
194
|
+
PipedrivePUT::Activity.getActivity_type
|
195
|
+
```
|
196
|
+
|
183
197
|
|
184
198
|
## Pipelines
|
185
199
|
|
data/lib/PipedrivePUT.rb
CHANGED
@@ -7,6 +7,9 @@ require 'PipedrivePUT/persons'
|
|
7
7
|
require 'PipedrivePUT/pipelines'
|
8
8
|
require 'PipedrivePUT/recents'
|
9
9
|
require 'PipedrivePUT/organization_field'
|
10
|
+
require 'PipedrivePUT/activity'
|
11
|
+
require 'PipedrivePUT/activity-type'
|
12
|
+
|
10
13
|
|
11
14
|
require 'json'
|
12
15
|
require 'open-uri'
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module PipedrivePUT
|
2
|
+
class ActivityType
|
3
|
+
include PipedrivePUT
|
4
|
+
|
5
|
+
|
6
|
+
#----------------------------------------- Gets all activity types ------------------------------------------------------------------
|
7
|
+
def self.getActivity_type
|
8
|
+
@base = 'https://api.pipedrive.com/v1/activityTypes?api_token=' + @@key.to_s
|
9
|
+
#puts @base
|
10
|
+
@content = open(@base.to_s).read
|
11
|
+
@parsed = JSON.parse(@content)
|
12
|
+
return @parsed
|
13
|
+
end
|
14
|
+
#-------------------------------------------------------------------------------------------------------------------------------------
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module PipedrivePUT
|
2
|
+
class Activity
|
3
|
+
include PipedrivePUT
|
4
|
+
|
5
|
+
#----------------------------------------- Gets activites of a specific user----------------------------------------------------------
|
6
|
+
def self.getActivity(user_id)
|
7
|
+
@base = 'https://api.pipedrive.com/v1/activities?user_id=' + user_id.to_s + '&api_token=' + @@key.to_s
|
8
|
+
#puts @base
|
9
|
+
@content = open(@base.to_s).read
|
10
|
+
@parsed = JSON.parse(@content)
|
11
|
+
return @parsed
|
12
|
+
end
|
13
|
+
#-------------------------------------------------------------------------------------------------------------------------------------
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
data/lib/PipedrivePUT/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: PipedrivePUT
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JakePens71
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -106,6 +106,8 @@ files:
|
|
106
106
|
- README.md
|
107
107
|
- Rakefile
|
108
108
|
- lib/PipedrivePUT.rb
|
109
|
+
- lib/PipedrivePUT/activity-type.rb
|
110
|
+
- lib/PipedrivePUT/activity.rb
|
109
111
|
- lib/PipedrivePUT/deal.rb
|
110
112
|
- lib/PipedrivePUT/organization.rb
|
111
113
|
- lib/PipedrivePUT/organization_field.rb
|