![]() The eventual goal of this gem is full coverage of all Rescuetime APIs.Īssociated issues from our issue tracker are linked when applicable. 504 => Rescuetime::Errors::GatewayTimeout.503 => Rescuetime::Errors::ServiceUnavailable.501 => Rescuetime::Errors::NotImplemented.500 => Rescuetime::Errors::InternalServerError.429 => Rescuetime::Errors::TooManyRequests.422 => Rescuetime::Errors::UnprocessableEntity.406 => Rescuetime::Errors::NotAcceptable.401 => Rescuetime::Errors::Unauthorized.Rescuetime::Errors::InvalidFormatError is raised if you pass a disallowed format to the client.Rescuetime::Errors::InvalidQueryError is raised if you enter an invalid value for any of the RescueTime query methods (or if the server returns a bad query error). ![]() Double-check your API key and fix your client with =. Rescuetime::Errors::InvalidCredentialsError is raised when a request is attempted by a client with invalid credentials.Rescuetime::Errors::MissingCredentialsError is raised when a request is attempted by a client with no credentials.There are a number of exceptions that extend from the Rescuetime::Errors::Error class: It is represented by Rescuetime::Errors::BadRequest. For example, in v0.3.3,Ī bad request was represented by Rescuetime::BadRequest. Namespace to the Rescuetime::Errors namespace. Note: In v0.4.0, custom exceptions were moved from the base Rescuetime valid_credentials? #=> true # Rescuetime uses lazy evaluation, so until you either manipulate the collection # or explicitly call for it (with #all), it will remain in the Rescuetime::Collection # format. Require 'rescuetime' = Rescuetime:: Client.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |