@@ -287,25 +287,29 @@ Furthermore you need to register vdirsyncer as an application yourself to
287
287
obtain ``client_id `` and ``client_secret ``, as it is against Google's Terms of
288
288
Service to hardcode those into opensource software [googleterms ]_:
289
289
290
- 1. Go to the `Google API Manager <https://console.developers.google.com >`_ and
291
- create a new project under any name.
290
+ 1. Go to the `Google API Manager <https://console.developers.google.com >`_
291
+
292
+ 2. Create a new project under any name.
292
293
293
294
2. Within that project, enable the "CalDAV" and "CardDAV" APIs (**not ** the
294
295
Calendar and Contacts APIs, those are different and won't work). There should
295
- be a searchbox where you can just enter those terms.
296
+ be a search box where you can just enter those terms.
296
297
297
- 3. In the sidebar, select "Credentials" and create a new "OAuth Client ID". The
298
- application type is "Desktop ".
298
+ 3. In the sidebar, select "Credentials", then "Create Credentials" and create a
299
+ new "OAuth Client ID ".
299
300
300
301
You'll be prompted to create a OAuth consent screen first. Fill out that
301
302
form however you like.
302
303
304
+ After setting up the consent screen, finish creating the new "OAuth Client
305
+ ID'. The correct application type is "Desktop application".
306
+
303
307
4. Finally you should have a Client ID and a Client secret. Provide these in
304
308
your storage config.
305
309
306
- The ``token_file `` parameter should be a filepath where vdirsyncer can later
307
- store authentication-related data. You do not need to create the file itself
308
- or write anything to it.
310
+ The ``token_file `` parameter should be a path to a file where vdirsyncer can
311
+ later store authentication-related data. You do not need to create the file
312
+ itself or write anything to it.
309
313
310
314
.. [googleterms ] See `ToS <https://developers.google.com/terms/?hl=th >`_,
311
315
section "Confidential Matters".
0 commit comments