-
Fix a bug with the retry logic in
with_response_handling
resulting in performing one more retry than expected .Eugene Tokarev
-
Introduces :login_host configuration attribute used to set up OAuth2::Client. Please note, this will result Procore::Client use
https://login.procore.com/oauth/token
instead ofhttps://api.procore.com/oauth/token
for auth token generation.Eugene Tokarev
-
Update oauth2 gem version to any 2.x
-
Relax rest-client version to any 2.x
Nate Baer
-
Fix a bug with automatic token refreshing where the expired token would still be used for the first request.
-
Fix requests made to incorrect URL when using newer versions of Oauth2
PR #52 - #52
Nate Baer
-
Add Procore-Sdk-Language header to all requests
PR #45 - #45
Benjamin Ross
-
Remove Redis.exists warning
PR #46 - #46
claudioprocore
-
Add Procore-Sdk-Version header to all requests
PR #44 - #44
Benjamin Ross
-
Change default host to 'api.procore.com'.
PR #42 - #42
Nate Baer
-
Allow tokens to be revoked and manually refreshed.
PR #39 - #39
Nate Baer
-
Adds support for API versioning
Nate Baer
As of v1.0.0, this gem now defaults to making requests against Procore's new
Rest v1.0 resources, instead of the now deprecated /vapid
namespace. Example:
# Previously makes a request to
client.get("me")
=> app.procore.com/vapid/me
# In 1.0.0
client.get("me")
=> app.procore.com/rest/v1.0/me
To keep the legacy behavior, set the new default_version
configuration option.
Note, that Rest v1.0 is a superset of the Vapid Api - there are no breaking
changes. The Vapid API will be decommissioned in December 2021.
Procore.configure do |config|
...
# Defaults to "v1.0"
config.default_version = "vapid"
...
end
All the request methods (get
, post
, patch
, put
, delete
, sync
) now
accept an optional version parameter to specify the version at request time.
client.get("me")
=> https://app.procore.com/rest/v1.0/me
client.get("me", version: "v1.1")
=> https://app.procore.com/rest/v1.1/me
client.get("me", version: "vapid")
=> https://app.procore.com/vapid/me
-
Expose #sync, a method that enables calling sync-actions
Patrick Koperwas
-
Addition of contribution guidelines to README
Megan O'Neill
-
Fix TravisCI failures
Patrick Koperwas
-
Add api_version to allow calls to procore rest endpoints
Shane Means
-
Dalli Store
Patrick Koperwas
-
Fix Requestable paths to prevent double slash in URI
Megan O'Neill
-
Rescue Errno::ECONNREFUSED errors and RestClient::ServerBrokeConnection
Casey Ochs
-
Use symbol key access for headers object
PR #23 - #23
Michael Stock
-
Rescue Procore::OAuthError
-
Add Procore::MissingTokenError
Casey Ochs
-
Fix rubocop
Michael Stock/Jason Gittler
-
Move all request methods to use keyword arguments
Michael Stock/Jason Gittler
-
Add 403 responses as Procore::ForbiddenError
Michael Stock
-
Add 400 responses as Procore::InvalidRequestError
Michael Stock
-
Add request_body to Procore::Response for debugging
Michael Stock
-
Fix redis store guard clause
Patrick Koperwas
-
Add multipart request support
-
Move to
RestClient
fromHTTParty
Matt Brinza
-
Add HTTP PUT support
Matt Brinza
- Wrap
AccessTokenCredentials
external errors with our own errors
- Allow gem to be pushed to RubyGems
- Move to using TravisCI
- Publish to RubyGems
- Add response to
OAuthError
-
Fix issue with passing request into
Procore::Response
.Michael Stock
-
Fix issue with client credentials by forcing the usage of request body for sending
client_id
andclient_secret
Michael Stock
-
Fix session store not saving off the optional key attribute
PR #2 - #2
Patrick Koperwas
-
Change error class for 404s.
Previously a 404 would raise a Procore::InvalidRequestError. Now, a 404 will raise a Procore::NotFoundError,
PR #1 - #1
Patrick Koperwas