Files
appwrite/docs/examples/1.6.x/server-ruby/examples/functions/create-execution.md
T

21 lines
550 B
Markdown

require 'appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('<YOUR_PROJECT_ID>') # Your project ID
.set_session('') # The user session to authenticate with
functions = Functions.new(client)
result = functions.create_execution(
function_id: '<FUNCTION_ID>',
body: '<BODY>', # optional
async: false, # optional
path: '<PATH>', # optional
method: ExecutionMethod::GET, # optional
headers: {}, # optional
scheduled_at: '' # optional
)