Sha256: 90624c53cdcc55e48efaa71e895c70db9a6b9e3dd3c7bcbae0df0eac3b68e62e

Contents?: true

Size: 1.28 KB

Versions: 4

Compression:

Stored size: 1.28 KB

Contents

module AngellistApi
  class Client
    # Defines methods related to URLs
    module StartupRoles      
      # Given a startup_id, returns the users involved in that startup. Given a user_id, returns the startups that user is involved in. If neither parameter is given, the authenticated user is used. Possible roles include team_member, past_investor, advisor and referrer. Roles are paginated and ordered by most recently declared first.
      # @requires_authentication Optional
      # @response_format `json`
      # @param options [Hash] A customizable set of options.
      # @option options [Integer] :user_id The user who's startup relationships you want to view. 
      # @option options [Integer] :startup_id  The startup who's user relationships you want to view. 
      # @example Given a startup_id, returns the users involved in that startup. Given a user_id, returns the startups that user is involved in. If neither parameter is given, the authenticated user is used. Possible roles include team_member, past_investor, advisor and referrer. Roles are paginated and ordered by most recently declared first.
      #   AngellistApi.get_startup_roles
      def get_startup_roles(options={})
        get("1/startup_roles", options, :format => :json, :phoenix => true)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
angellist_api-1.0.1 lib/angellist_api/client/startup_roles.rb
angellist_api-0.1.2 lib/angellist_api/client/startup_roles.rb
angellist_api-1.0.0 lib/angellist_api/client/startup_roles.rb
angellist_api-0.1.0 lib/angellist_api/client/startup_roles.rb