1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00
appwrite/docs/examples/0.7.0/server-ruby/examples/functions/create-tag.md
2021-02-11 11:20:11 +02:00

429 B

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 ;

functions = Appwrite::Functions.new(client);

response = functions.create_tag(function_id: '[FUNCTION_ID]', command: '[COMMAND]', code: Appwrite::File.new());

puts response