appwrite/docs/examples/1.5.x/server-python/examples/functions/create-variable.md

15 lines
400 B
Markdown
Raw Normal View History

2024-02-05 12:40:51 +00:00
from appwrite.client import Client
client = Client()
2024-02-21 11:31:50 +00:00
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
client.set_project('5df5acd0d48c2') # Your project ID
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
2024-02-05 12:40:51 +00:00
functions = Functions(client)
2024-02-21 11:31:50 +00:00
result = functions.create_variable(
2024-02-24 11:34:42 +00:00
function_id = '<FUNCTION_ID>',
key = '<KEY>',
value = '<VALUE>'
2024-02-21 11:31:50 +00:00
)