Sha256: 0dcef3a526afb6d84e877b8dd30df237957ee0cce56da85500ca8bdfb8dfd1bb

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

module Notion
  class Databases
    def retrieve(id)
      RequestClient.active_client.get("/v1/databases/#{id}")
    end

    def list
      RequestClient.active_client.get("/v1/databases")
    end

    def query(id, body)
      RequestClient.active_client.post("/v1/databases/#{id}/query", body: body.to_json)
    end

    def create(body)
      RequestClient.active_client.post("/v1/databases", body: body.to_json)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
notion-sdk-ruby-0.4.0 lib/notion-sdk-ruby/resources/databases.rb