Ruby interface for the Lokalise APIv2 that represents returned data as Ruby objects.
View the Project on GitHub lokalise/ruby-lokalise-api
The gem may raise the following custom exceptions:
RubyLokaliseApi::Error::BadRequest
(400
) - the provided request incorrectRubyLokaliseApi::Error::Unauthorized
(401
) - token is missing or incorrectRubyLokaliseApi::Error::Forbidden
(403
) - authenticated user does not have sufficient rights to perform the desired actionRubyLokaliseApi::Error::NotFound
(404
) - the provided endpoint (resource) cannot be foundRubyLokaliseApi::Error::MethodNotAllowed
(405
) - HTTP request with the provided verb is not supported by the endpointRubyLokaliseApi::Error::NotAcceptable
(406
) - posted resource is malformedRubyLokaliseApi::Error::Conflict
(409
) - request conflicts with another requestRubyLokaliseApi::Error::Locked
(423
) - your token is used simultaneously in multiple requestsRubyLokaliseApi::Error::TooManyRequests
(429
)RubyLokaliseApi::Error::ServerError
(500
)RubyLokaliseApi::Error::BadGateway
(502
)RubyLokaliseApi::Error::ServiceUnavailable
(503
)RubyLokaliseApi::Error::GatewayTimeout
(504
)Access to all endpoints is limited to 6 requests per second from 14 September, 2021. This limit is applied per API token and per IP address. If you exceed the limit, a 429 HTTP status code will be returned and the corresponding exception will be raised that you should handle properly. To handle such errors, we recommend an exponential backoff mechanism with a limited number of retries. You can use lokalise_rails backoff mechanism as an example.