Sha256: 9f7ef1c8e70507605cbc9733d18e2dc1eba8e23570bc9da345643646d5736a7c
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
module AngellistApi class Client # Defines methods related to URLs # # @see http://angel.co/api/spec/reviews module Reviews # Return reviews for the given user. If no user given, the authenticated # user is used. Reviews are paginated and ordered by most recent first. # Also returns the total count of positive reviews. # # @requires_authentication Optional # @paginated Yes # # @param [Hash] options A customizable set of options. # @option options [Integer] :user_id user_id of the desired user. If none # given, defaults to the authenticated user. # # @example Get reviews for the authenticated user. # AngellistApi.get_reviews # # @example Get reviews for a given user ID. # AngellistApi.get_reviews(:user_id => 1234) def get_reviews(options={}) get("1/reviews", options) end # Shows details for a specific review # # @requires_authentication No # # @param id [Integer] ID of the review to fetch. # # @example Get information for a review. # AngellistApi.get_review(1098) def get_review(id) get("1/reviews/#{id}") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
angellist_api-1.1.0 | lib/angellist_api/client/reviews.rb |
angellist_api-1.0.7 | lib/angellist_api/client/reviews.rb |