class Notion::Databases
Public Instance Methods
create(body)
click to toggle source
# File lib/notion-sdk-ruby/resources/databases.rb, line 15 def create(body) RequestClient.active_client.post("/v1/databases", body: body.to_json) end
list()
click to toggle source
# File lib/notion-sdk-ruby/resources/databases.rb, line 7 def list RequestClient.active_client.get("/v1/databases") end
query(id, body)
click to toggle source
# File lib/notion-sdk-ruby/resources/databases.rb, line 11 def query(id, body) RequestClient.active_client.post("/v1/databases/#{id}/query", body: body.to_json) end
retrieve(id)
click to toggle source
# File lib/notion-sdk-ruby/resources/databases.rb, line 3 def retrieve(id) RequestClient.active_client.get("/v1/databases/#{id}") end