lib/thumbtack/client.rb
# Perform an action request against the Pinboard API
#
# @param [String] path
#   the path to fetch from, relative to from the base Pinboard API URL
#
# @param [Hash] params
#   query parameters to append to the URL
#
# @return [Hash] the response parsed from the JSON
#
# @raise [RateLimitError] if the response is rate-limited
# @raise [ResultError] if the result code isn't "done"
#
# @api private
# @see https://pinboard.in/api/#errors
Perform an action request against the Pinboard API
Perform an action request against the Pinboard API
def action(path, params)
      response = @adapter.get(path, params)
      unless response["result_code"] == "done"
        raise ResultError, response["result_code"]
      end
      self
    end
def action ( path , params ) response = @adapter . get ( path , params ) unless response [ "result_code" ] == "done" raise ResultError , response [ "result_code" ] end self end
Perform an action request against the Pinboard API
Perform an action request against the Pinboard API
the response parsed from the JSON
the response parsed from the JSON
Hash
[RateLimitError] if the response is rate-limited
[ RateLimitError ] if the response is rate - limited
[ResultError] if the result code isn't "done"
[ ResultError ] if the result code isn ' t " done "
path
<not_specific>
params
<not_specific>
<not_specific>
params query parameters to append to the URL
params query parameters to append to the URL
api
None
see
None