Wiki source code of Récupérer une source sur son Google Drive
Last modified by Aurelie Bertrand on 2020/07/31 11:30
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{toc/}} | ||
2 | |||
3 | ---- | ||
4 | |||
5 | = Preparation = | ||
6 | |||
7 | == Prerequisite == | ||
8 | |||
9 | For the first method: | ||
10 | |||
11 | * A service account to store documents and a file. Refer to p12 | ||
12 | * Follow the instruction of the tutoriel “google_drive_config_en.pdf” to get data settings. | ||
13 | |||
14 | For the second method: | ||
15 | |||
16 | * No requisite | ||
17 | |||
18 | == Principles == | ||
19 | |||
20 | There are two ways to share a document from Google Drive : | ||
21 | |||
22 | 1. First : You can retrieve the document by sharing it with the service account created | ||
23 | 1. Second method : by creating a public link of the file in Google Drive and adding the link in the DigDash document server as an URL. | ||
24 | |||
25 | = First method = | ||
26 | |||
27 | == Service account == | ||
28 | |||
29 | Get the service account ID (as email address) | ||
30 | |||
31 | [[image:gdrive.png]] | ||
32 | |||
33 | == Share file to the service account == | ||
34 | |||
35 | Connect to the Google Drive account and share the document to the service account previously mentioned. | ||
36 | [[image:https://lh3.googleusercontent.com/H-PCkjFPEWFVUpqrEqowKjjaZhtKwSaa12EVqZ88np5gJH_Dd80cigHNrKne3DL0cjlh0sKzOr6F9b4ezjyVrNNlAK5N4xisY29wOa9nuKJqdbs_EGjE2RFPVL6VpYf2xH-M4qGlulw||height="330" width="413"]] | ||
37 | |||
38 | [[image:https://lh3.googleusercontent.com/W-SVIi9EDQegM97n5nnDeaFrLPpal_OdaOM2yQEm1n4SKQWPfoL3c4ZRVFgVXSe7ZkNPtdN0ijBAI9tfsnUvd9vlUW94qFf4EagcY80Qd8Y2jaUs34XSKiye7ljGe0xO1Ix0xo6ENwY||height="334" width="474"]] | ||
39 | |||
40 | = Second method = | ||
41 | |||
42 | == Creating a public link of the Google Drive’s file == | ||
43 | |||
44 | From the google File : File > Publish on the web | ||
45 | [[image:https://lh4.googleusercontent.com/iuxZv7Gst87N3JSp3lQ1bVyIuL099LEIkoYnKBnO7gcaS7RPAhJP6K264ZPikNDTOC1RiLEyFOR9xcXaAZkzMzkdmc927vn-u5ZjoPF4FJhlbQbOMymaRhKglcR4WPhhvDOm8sccHNc||height="426" width="451"]] | ||
46 | |||
47 | == publish after every update == | ||
48 | |||
49 | Choose a format > check “publish automatically after every update” to send the updates > start the publication > Copy the generated link | ||
50 | [[image:https://lh5.googleusercontent.com/ppNFHE6ypKoHRV0uGXsiwuwsV-DtmoUKdwxWeWHILiTzKVxlNG3BVe66izj-19liiVNZn0Rm1H2Fs3duFWlAHj8L4OgugHeZdeHNaJYeu7QJbNpAOZThDBVc4n6So_x7M0mi-Nm0lLE||height="411" width="467"]] | ||
51 | |||
52 | |||
53 | [[image:https://lh3.googleusercontent.com/J0Q3T5alWuJSwpkmN6enKVyr8mPDq2dkk4nsKBIC295uP_l2bVyLckKqEhkKfXQJJRn4vmYzDWAe7sbAtRJKvw8sdzY-i0k7rJY-zsgFL1t4LisjVJvAclVoJj4WERbvZJNCNCr6LLE||height="524" width="475"]] | ||
54 | |||
55 | == Add the document in DigDas == | ||
56 | |||
57 | Select the document server and add a file from the URL previously copied > Give a name to the file. | ||
58 | [[image:https://lh4.googleusercontent.com/TqqMPBkI62qCP_hoer6w9-rGG0RZYyrTue54cU68QhM4DTz1hxDxhhcZAlFzup90Pu1BaO_UE32H0xFrlTW7GSfJlKL3X-w8tfsbUvztSTDpE2SkuFeYzk4EZF6LUdQpzLyoqRWf6rM||height="445" width="446"]] |