Sharing a function
You can share your functions with others, and they can simply use it from their code just as simply as you can.
All you need is the email address of the person you want to share with. We take care of the rest.
Sharing is implemented on a namespace level.
Sharing via code¶
Using code is the easiest way to share a namespace. There are 3 steps to share a function:
- Create a namespace that you want to share
- Add the function you want to share to the namespace
- Share the namespace via e-mail
In code it looks just like this:
|Sharing a function|
1 2 3 4 5 6 7 8 9
<user_namespace> is the namespace that is bound to your user and is
<username>_a0 if you
use a username/password combination for your account. If you use a social login the username will
be taken from there. To ensure uniqueness we add a suffix to the username to create the namespace:
- for Auth0 (username/password):
- for GitHub:
- for Google:
<function> is any function that is available in your catalog and owned by you.
The output of th script above is an invite ID. The invite is sent via email to the specified recipient. The invite is not bound to this email address. If the invitee uses another email for LMRTFY they can just login with their regular account to accept the invite.
Alternatively, the invitation can be accepted via code as well: