forked from gburd/wave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.import
49 lines (37 loc) · 1.83 KB
/
README.import
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Import all the waves in which specified user is a participant.
Wave Id's and wavelet Id's remain same, except domains.
Domains of participants are renamed to Wiab server domain.
Attachments are not imported now.
Get Google OAuth application Id:
- Go to https://code.google.com/apis/console/.
- Create a new project.
- Click on "API Access" on the left, then "Create an OAuth2.0 client id".
- Enter a product name. Leave the logo empty. Click "Next".
- Application type: Installed application.
- Click "Create client ID".
Make sure to you have compiled WIAB by running the following command:
ant dist
Export waves from GWave to JSon files:
Run
./run-export.sh <ClientId> <ClientSecret> <ParticipantId> <ExportDir> [-i IncludeWavesList] [-e ExcludeWavesList]
Parameters are:
ClientId - Google application Id;
ClientSecret - Google application secret;
ParticipantId - Wave participant name, for example [email protected];
ExportDir - directory to write export files;
IncludeWavesList - optional, list of waves to include,
for example googlewave.com!w+9aLgzbTk0u googlewave.com!w+Cl2NTbgKCW;
ExcludeWavesList - optional, list of waves to exclude.
Note: For Linux machines you might need to prepend the "!" with "\", i.e.
googlewave.com!w+9aLgzbTk0u -> googlewave.com\!w+9aLgzbTk0u
Copy/paste URL from console to browser. Press Enter.
Copy/paste URL received code from browser to console.
Import waves to WIAB:
Enable the import waves feature in server.config
enable_import = true
Run
./run-import.sh <WaveServerImportUrl> <WaveServerDomain> <ExportDir>
Parameters are:
WaveServerImportUrl - URL of import service, for example http://localhost:9898/import;
WaveServerDomain - domain of WIAB server, for example local.net;
ExportDir - directory with exported waves.