PipedrivePUT 1.1.1 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17b9e641232a769d0c7acd7e70d0f5ce780a24d5
4
- data.tar.gz: cf89e45f3239787f6f544f604a3521c82fefc268
3
+ metadata.gz: dc1306a22f48dc1d8fa61b27919a97d9441f26c8
4
+ data.tar.gz: 627fb5864a39486f2c8b0f33c584c123e4cb20fc
5
5
  SHA512:
6
- metadata.gz: 5a3a25b3a69348e5adc9ec4a7adeaf170fa7a6feb8894f2fdd113cf6df6b355c426320aa297effee447d9b674ae208b9f409a510aaad1fcad89ec7b7036ca788
7
- data.tar.gz: f60c637246df73015bea70054e09fb263bc8d5e280e4b4b23065366ab382961d9935598bf475a0b5146fdc2bae6ec94bef6becc311e7060afa59fb65612333e5
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
- 2. Add support for additional arguments to create an organization
90
+ 1. Add support for additional arguments to create an organization
86
91
 
87
- 3. Get All Deals
92
+ 2. Get All Deals
88
93
 
89
- 4. Add a deal
94
+ 3. Add a deal
90
95
 
91
- 5. Many other Pipedrive API Calls
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
@@ -1,3 +1,3 @@
1
1
  module PipedrivePUT
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
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.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-27 00:00:00.000000000 Z
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler