Sha256: 63bbc1682a631e0d4febf0f45a829d5e19e710e11a3ead60912f0b92459b06d5
Contents?: true
Size: 627 Bytes
Versions: 2
Compression:
Stored size: 627 Bytes
Contents
module Notion module Api class UsersMethods include RequestClient # Returns a paginated list of Users for the workspace. # https://developers.notion.com/reference/get-users # @return [Array<Notion::User>] def list response = get("/v1/users") List.new(response.body) end # Retrieves a User using the ID specified. # https://developers.notion.com/reference/get-user # @param [String] id user_id # @return [Notion::User] def retrieve(id) response = get("/v1/users/#{id}") User.new(response.body) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
notion-sdk-ruby-0.6.1 | lib/notion-sdk-ruby/api/users.rb |
notion-sdk-ruby-0.6.0 | lib/notion-sdk-ruby/api/users.rb |