![]() The trigger can be enabled under the Settings tab of the function. In our case, we wish to trigger it whenever a new file is uploaded to the Appwrite server. Once created, we need to define a trigger for the function. Then create your main code file and a requirements.txt.Įnter fullscreen mode Exit fullscreen mode Create a directory to hold your Cloud Function. The next step is to write the code that will be executed and upload it to the Appwrite Console. We will be using Python for this example. You can give your function a funky new name and select the preferred environment. Head over to the Functions section of your console and select Add Function. Now it's time to create the Cloud Function in the Appwrite Console. The first step is to create a Dropbox Developer account and obtain the Access Token. ![]() ![]() A similar concept applies to other API providers like Box or Google Drive. For the sake of this example, we will be using Dropbox’s Python SDK. In this example, we will demonstrate how we can integrate with a third-party storage provider like Dropbox to create backups of files uploaded to Appwrite. You can find a complete list of available system events here. In this tutorial, we will cover how we can leverage Appwrite’s Cloud functions feature to execute certain tasks when certain events take place in the server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |