1
0
Fork 0
mirror of synced 2024-08-20 12:41:26 +12:00
appwrite/app/sdks/server-ruby/docs/examples/users/update-status.md
2020-05-30 14:52:36 +03:00

15 lines
No EOL
375 B
Markdown

require 'appwrite'
client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
users = Appwrite::Users.new(client);
response = users.update_status(user_id: '[USER_ID]', status: '1');
puts response