Mercurial > libervia-backend
comparison doc/jp/invitation.rst @ 3041:72583524cfd3
doc (jp): jp commands are now fully documented:
rel 232
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 01 Oct 2019 22:49:06 +0200 |
parents | |
children | c560aae54f5f |
comparison
equal
deleted
inserted
replaced
3040:fee60f17ebac | 3041:72583524cfd3 |
---|---|
1 ============================================== | |
2 invitation: invite people without XMPP account | |
3 ============================================== | |
4 | |
5 Invitations allows you to invite people without XMPP account, so they can participate e.g. | |
6 to a discussion by using a specially generated link. This is a Salut à Toi specific | |
7 feature and those commands are rather low lever. | |
8 | |
9 .. _jp-invitation_create: | |
10 | |
11 create | |
12 ====== | |
13 | |
14 Invite somebody to participate. This will create a guest account and a link with an | |
15 identifier to access this account, and send an invitation to the given email. | |
16 | |
17 The email is specified using ``-e EMAIL, --email EMAIL``, which can be used multiple times | |
18 to send the invitation to more than one address. | |
19 | |
20 You'll usually want to specify the name of the person you're inviting, using ``-n NAME, | |
21 --name NAME``, it may later be used in email sent or in the web page where your guest will | |
22 land. | |
23 | |
24 ``-N HOST_NAME, --host-name HOST_NAME`` is used to specify the name of yourself (i.e. the | |
25 person which is inviting), it may be used in invitation message. | |
26 | |
27 You'll most of time have to specify the URL template using ``-u URL, --url URL``. This | |
28 will be used in the invitation email to construct the URL where your invitee will click. | |
29 You may use the string ``{{uuid}}`` in this template which will be replaced by the id | |
30 associated to the invitation. With Libervia, default invitation page is | |
31 ``<your_server>/g/<uuid>``. | |
32 | |
33 The language of your guest can be specified using ``-l LANG, --lang LANG``, this is | |
34 notably useful if you have multilingual blog posts (e.g. for an event where people | |
35 speaking different languages are invited). | |
36 | |
37 The ``-x KEY VALUE, --extra KEY VALUE`` is used for extra data which depend on what you | |
38 are inviting your guests for. | |
39 | |
40 | |
41 example | |
42 ------- | |
43 | |
44 Invite Louise, which is speaking French, to an event. The invitation is sent to her email | |
45 address ``louise_email@example.net``, is sent by Piotr, and must link to the Libervia | |
46 instance at ``https://www.example.org/g/<id>``. We use here the ``event_uri`` extra key:: | |
47 | |
48 $ jp invitation create -n Louise -N Pierre -e louise_email@example.net -l fr -u "https://www.example.org/g/{uuid}" -x event_uri xmpp:pierre@example.org?;node=MnXe4ic2X8RUz6JAJuw4f9;item=org.salut-a-toi.event%3A0 | |
49 | |
50 | |
51 get | |
52 === | |
53 | |
54 Get metadata for one specific invitation. You only have to specify the invitation id, and | |
55 you may use the option ``-j, --with-jid`` to also get the jid used for the invitation | |
56 (this will start the session of the invitee). | |
57 | |
58 example | |
59 ------- | |
60 | |
61 Get invitation data for invitation with id ``okFec4gDz75My7iQAVTmsc``:: | |
62 | |
63 $ jp invitation get okFec4gDz75My7iQAVTmsc -j | |
64 | |
65 | |
66 modify | |
67 ====== | |
68 | |
69 This work the same way as jp-invitation_create_, you only have to specify the ``id`` of the | |
70 invitation. | |
71 | |
72 If you use the ``--replace`` argument, all the invitation data will be replaced by the | |
73 ones you're specifying. | |
74 | |
75 example | |
76 ------- | |
77 | |
78 Change the language of the invitee for the invitation ``okFec4gDz75My7iQAVTmsc`` for | |
79 Slovak:: | |
80 | |
81 $ jp invitation modify -l sk okFec4gDz75My7iQAVTmsc | |
82 | |
83 | |
84 list | |
85 ==== | |
86 | |
87 List registered invitations. You may filter by the profile who made the invitation using | |
88 ``-p PROFILE, --profile PROFILE``. | |
89 The invitations are shown by default using id as main data, and metadata below. | |
90 | |
91 example | |
92 ------- | |
93 | |
94 List invitations:: | |
95 | |
96 $ jp invitation list |