procore 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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +8 -0
- data/lib/procore/requestable.rb +1 -0
- data/lib/procore/version.rb +1 -1
- data/procore-1.1.1.gem +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49f3e1daa62e1998646029758f63b21f973a9851
|
4
|
+
data.tar.gz: a2613a7ea2ddd4aa4ce6cbb7531a267af94dc195
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92474ea3b4e4ac1c4658ed192e929e9ac6b203dead4b1b5e0e424fc545d723197a606e906e224f7809f2914ed7dca83243d38bb9c6ee783d1422c7c36f0ecb90
|
7
|
+
data.tar.gz: 707e8d18312f9c029fe86849eecc84dc50f4fd52191c4938c858a7ad0d420aac6798673575fb413a8c37b90def7f5c4bfdc5826a20f23525a2a253f52d586558
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -69,6 +69,9 @@ default version is `v1.0` unless otherwise configured.
|
|
69
69
|
| `client.get("me", version: "v1.1")` | `https://api.procore.com/rest/v1.1/me` |
|
70
70
|
| `client.get("me", version: "vapid")` | `https://api.procore.com/vapid/me` |
|
71
71
|
|
72
|
+
In addition to the settings above, you will need to set `company_id` in the request
|
73
|
+
options to work with [Multiple Procore Zones (MPZ)](https://developers.procore.com/documentation/tutorial-mpz).
|
74
|
+
|
72
75
|
Example Usage:
|
73
76
|
|
74
77
|
```ruby
|
@@ -83,6 +86,11 @@ client = Procore::Client.new(
|
|
83
86
|
companies = client.get("companies")
|
84
87
|
|
85
88
|
companies.first[:name] #=> "Procore Company 1"
|
89
|
+
|
90
|
+
# Get a company's projects (note the company_id value in options)
|
91
|
+
projects = client.get("projects", query: {company_id: <company_id>}, options: {company_id: <company_id>})
|
92
|
+
|
93
|
+
projects.first[:name] #=> "Project 1"
|
86
94
|
```
|
87
95
|
|
88
96
|
To use Procore's older API Vapid by default, the default version can be set in
|
data/lib/procore/requestable.rb
CHANGED
@@ -343,6 +343,7 @@ module Procore
|
|
343
343
|
"Accepts" => "application/json",
|
344
344
|
"Authorization" => "Bearer #{access_token}",
|
345
345
|
"Content-Type" => "application/json",
|
346
|
+
"Procore-Sdk-Version" => "ruby-#{Procore::VERSION}",
|
346
347
|
"User-Agent" => Procore.configuration.user_agent,
|
347
348
|
}.tap do |headers|
|
348
349
|
if options[:idempotency_token]
|
data/lib/procore/version.rb
CHANGED
data/procore-1.1.1.gem
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: procore
|
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
|
- Procore Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -283,6 +283,7 @@ files:
|
|
283
283
|
- lib/procore/response.rb
|
284
284
|
- lib/procore/util.rb
|
285
285
|
- lib/procore/version.rb
|
286
|
+
- procore-1.1.1.gem
|
286
287
|
- procore.gemspec
|
287
288
|
homepage: https://github.com/procore/ruby-sdk
|
288
289
|
licenses:
|