appwrite/docs/examples/1.0.x/server-ruby/examples/avatars/get-flag.md

14 lines
345 B
Markdown
Raw Normal View History

2022-09-14 12:11:36 +00:00
require 'Appwrite'
2022-09-14 09:11:08 +00:00
2022-09-14 12:11:36 +00:00
include Appwrite
2022-09-14 09:11:08 +00:00
2022-09-14 12:11:36 +00:00
client = Client.new
2022-09-14 09:11:08 +00:00
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
2022-09-14 12:11:36 +00:00
avatars = Avatars.new(client)
2022-09-14 09:11:08 +00:00
response = avatars.get_flag(code: 'af')
puts response.inspect