PipedrivePUT 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -5
- data/lib/PipedrivePUT/organization.rb +9 -0
- data/lib/PipedrivePUT/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc1306a22f48dc1d8fa61b27919a97d9441f26c8
|
4
|
+
data.tar.gz: 627fb5864a39486f2c8b0f33c584c123e4cb20fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe58e6dc1d7f084aa63c9547827d24429242bd33d75586880be20ed8e31d9bee3425725842335f228756271c969019923126e0d289624eda54bd9f2e318c8656
|
7
|
+
data.tar.gz: b4eaf6324f8ff89138564eff876b08ea0aa3b91dfd30498739c541bc79c160a4a9c5052b9df2354f597ce4a4752003467bbc3fcf226f8aa9e916ba8ec59578a5
|
data/README.md
CHANGED
@@ -30,6 +30,12 @@ Get all organizations from your account at Pipedrive
|
|
30
30
|
PipedrivePUT::Organizations.getAllOrgs
|
31
31
|
```
|
32
32
|
|
33
|
+
Get Organization by ID
|
34
|
+
```ruby
|
35
|
+
PipedrivePUT::Organizations.getOrganization(<id>)
|
36
|
+
```
|
37
|
+
|
38
|
+
|
33
39
|
Add an organization
|
34
40
|
|
35
41
|
```ruby
|
@@ -80,15 +86,14 @@ This is my first attempt at a ruby gem so I appoligize if things are unorthodox.
|
|
80
86
|
|
81
87
|
## To do List
|
82
88
|
|
83
|
-
1. Add search for specific organization id
|
84
89
|
|
85
|
-
|
90
|
+
1. Add support for additional arguments to create an organization
|
86
91
|
|
87
|
-
|
92
|
+
2. Get All Deals
|
88
93
|
|
89
|
-
|
94
|
+
3. Add a deal
|
90
95
|
|
91
|
-
|
96
|
+
4. Many other Pipedrive API Calls
|
92
97
|
|
93
98
|
|
94
99
|
## Contributing
|
@@ -58,6 +58,15 @@ include PipedrivePUT
|
|
58
58
|
|
59
59
|
end
|
60
60
|
|
61
|
+
#Return data of a specific Organization
|
62
|
+
def self.getOrganization(id)
|
63
|
+
@base = 'https://api.pipedrive.com/v1/organizations/' + id.to_s + '?api_token=' + @@key.to_s
|
64
|
+
@content = open(@base.to_s).read
|
65
|
+
@parsed = JSON.parse(@content)
|
66
|
+
return @parsed
|
67
|
+
end
|
68
|
+
|
69
|
+
|
61
70
|
|
62
71
|
end
|
63
72
|
end
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JakePens71
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|