appwrite/docs/examples/1.5.x/server-ruby/examples/account/update-prefs.md

15 lines
320 B
Markdown
Raw Normal View History

2024-02-05 12:40:51 +00:00
require 'appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_session('') # The user session to authenticate with
account = Account.new(client)
2024-02-27 08:12:00 +00:00
result = account.update_prefs(
2024-02-21 11:31:50 +00:00
prefs: {}
)