Sha256: d3185a92b4a796ab90099418047299db425a7105ae5113410b4eff4a163ef627
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
module Lotrip module Foursquare class Error < StandardError ; end class InvalidAuth < Foursquare::Error; end class ServiceUnavailable < Foursquare::Error; end def self.verbose=(setting) @verbose = setting end def self.verbose? @verbose end def self.log(msg) return unless verbose? puts "[foursquare] #{msg}" end ERRORS = { "invalid_auth" => "OAuth token was not provided or was invalid.", "param_error" => "A required parameter was missing or a parameter was malformed. This is also used if the resource ID in the path is incorrect.", "endpoint_error" => "The requested path does not exist.", "not_authorized" => "Although authentication succeeded, the acting user is not allowed to see this information due to privacy restrictions.", "rate_limit_exceeded" => "Rate limit for this hour exceeded.", "deprecated" => "Something about this request is using deprecated functionality, or the response format may be about to change.", "server_error" => "Server is currently experiencing issues. Check status.foursquare.com for udpates.", "other" => "Some other type of error occurred." } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lotrip-0.1.0 | lib/foursquare.rb |