Sha256: 45eca4fbebb72060c3e8aa9a819057e108d8bfa46efc29dfdc5b5b5d8348297f

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 KB

Contents

module AngellistApi
  class Client
    # Defines methods related to URLs
    #
    # @see http://angel.co/api/spec/startup_roles
    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 founder, employee, past_investor, advisor, incubator and
      # referrer. Roles are paginated and ordered by most recently declared
      # first.
      #
      # @requires_authentication Optional
      #
      # @param [Hash] options A customizable set of options.
      # @option options [Integer] :user_id The user whose startup relationships
      #   you want to view.
      # @option options [Integer] :startup_id  The startup whose user
      #   relationships you want to view.
      #
      # @example Get info about authenticated user's startups and roles.
      #   AngellistApi.get_startup_roles
      #
      # @example Get users involved in startup with ID 1234, and their roles.
      #   AngellistApi.get_startup_roles(:startup_id => 1234)
      def get_startup_roles(options={})
        get("1/startup_roles", options)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
angellist_api-1.0.3 lib/angellist_api/client/startup_roles.rb
angellist_api-1.0.2 lib/angellist_api/client/startup_roles.rb