Skip to content

Commit 7e6c7ca

Browse files
committed
Google: update to use the readonly API
1 parent 93772fb commit 7e6c7ca

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

GoogleTaskExport/GoogleTasks.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ open Google.Apis.Tasks.v1
88
open Google.Apis.Tasks.v1.Data
99

1010
[<Literal>]
11-
let TasksScope = "https://www.googleapis.com/auth/tasks"
11+
let TasksScope = "https://www.googleapis.com/auth/tasks.readonly"
1212

1313
[<Literal>]
1414
let MaxEntitiesPerRequest = 100

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
GoogleTaskExport [![Status Aquana][status-aquana]][andivionian-status-classifier]
22
================
33

4-
This is a program to export the [Google Tasks][google-tasks] data from your Google account to a JSON file, or just print them in the terminal.
4+
This is a program to export the [Google Tasks][google.tasks] data from your Google account to a JSON file, or just print them in the terminal.
55

66
Usage
77
-----
88

99
### Client Secret
1010
To use GoogleTaskExport, you'll have to register an application with Google and obtain a client secret file.
1111

12-
1. Create a Google Cloud Project.
12+
1. Create a [Google Cloud Project][google.console].
1313
2. On the **Enabled APIs & services** page, choose **Enable APIs and Services**, search for **Google Tasks API** and choose **Enable**.
1414
3. On the **Google Tasks API** page, click **Create Credentials**.
1515
4. On the **Which API are you using?** step, choose **User data**.
1616
5. On the **OAuth Consent Screen** step, configure it whatever you want.
17-
6. On the **Scopes** step, choose Google Tasks API (the non-readonly variant), `https://www.googleapis.com/auth/tasks`.
17+
- One detail to remember is not to use the `Google` name in the application name. [See here][stack-overflow.google-auth] for more details.
18+
6. On the **Scopes** step, choose Google Tasks API (the one with the `.readonly` suffix), `https://www.googleapis.com/auth/tasks.readonly`.
1819
7. On the **OAuth Client ID** step, choose **Desktop app**. Specify the name as `GoogleTaskExport`.
1920
8. Download the resulting JSON file.
2021
9. Remember to add the users you want to use the application on the **OAuth consent screen** page, in the **Test users** list.
@@ -45,5 +46,7 @@ Documentation
4546
[docs.code-of-conduct]: CODE_OF_CONDUCT.md
4647
[docs.contributing]: CONTRIBUTING.md
4748
[docs.license]: LICENSE.md
48-
[google-tasks]: https://support.google.com/tasks/answer/7675772?hl=en
49+
[google.console]: https://console.cloud.google.com/
50+
[google.tasks]: https://support.google.com/tasks/answer/7675772?hl=en
51+
[stack-overflow.google-auth]: https://stackoverflow.com/q/63948396
4952
[status-aquana]: https://img.shields.io/badge/status-aquana-yellowgreen.svg

0 commit comments

Comments
 (0)