README.md in rdstation-ruby-client-2.3.1 vs README.md in rdstation-ruby-client-2.4.0

- old
+ new

@@ -91,11 +91,11 @@ config.client_secret = YOUR_CLIENT_SECRET config.on_access_token_refresh do |authorization| # authorization.access_token_expires_in is the time (in seconds for with the token is valid) # authorization.access_token is the new token # authorization.refresh_token is the existing refresh_token - # + # # If you are using ActiveRecord, you may want to update the stored access_token, like in the following code: MyStoredAuth.where(refresh_token: authorization.refresh_token).update_all(access_token: authorization.access_token) end end ``` @@ -230,11 +230,11 @@ #### Update a field ```ruby payload = {} # hash representing the payload client = RDStation::Client.new(access_token: 'access_token', refresh_token: 'refresh_token') -client.fields.update('FIELD_UUID', payload) +client.fields.update('FIELD_UUID', payload) ``` Or you can use the new `RDStation::Builder::Field` ```ruby payload = {} # hash representing the payload @@ -313,9 +313,10 @@ - `RDStation::Error::MethodNotAllowed` (405) - `RDStation::Error::NotAcceptable` (406) - `RDStation::Error::Conflict` (409) - `RDStation::Error::UnsupportedMediaType` (415) - `RDStation::Error::UnprocessableEntity` (422) +- `RDStation::Error::TooManyRequests` (429) - `RDStation::Error::InternalServerError` (500) - `RDStation::Error::NotImplemented` (501) - `RDStation::Error::BadGateway` (502) - `RDStation::Error::ServiceUnavailable` (503) - `RDStation::Error::ServerError` (which is returned for 5xx errors different than 500, 501, 502 or 503)