appwrite/docs/examples/1.1.x/server-ruby/examples/functions/get-deployment.md

14 lines
410 B
Markdown
Raw Normal View History

2022-11-16 23:35:44 +00:00
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
2022-11-16 23:35:44 +00:00
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.get_deployment(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]')
puts response.inspect