Hello, I'm new to Appwrite, I come from a Firebase background, and in firebase, we use dynamic links (which will be discontinued soon) for refer and earn system, and when a dynamic link opens it has a userId query parameter so we know whose link it is, whenever someone opens referral link.
we can do similar with Appwrite too, but how to generate a unique referral code and link it to the Appwrite user?
Summary
To create a referral system with Appwrite, you can have a collection of referral codes and a function for accepting the referral code. This function can lookup the referral code to determine which user it belongs to.
Additionally, Appwrite has recently released Appwrite Dynamic Links, which can be used for this purpose. You can check out the documentation here: [GitHub - Appwrite Dynamic Links](https://github.com/appwrite/dynamic-links)
If you have any further questions or need more documentation, feel free to reach out.
Tessa
Jul 14, 2023, 20:59
hi @kamal.panara , we just released Appwrite Dynamic Links today.