https://github.com/Maxim-Mazurok/google-tasks-api-ts-example
Google Tasks API example in TypeScript for Browser
https://github.com/Maxim-Mazurok/google-tasks-api-ts-example
gapi google-tasks google-tasks-api typescript
Last synced: 11 months ago
JSON representation
Google Tasks API example in TypeScript for Browser
- Host: GitHub
- URL: https://github.com/Maxim-Mazurok/google-tasks-api-ts-example
- Owner: Maxim-Mazurok
- Created: 2020-01-11T10:17:38.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-03T01:08:32.000Z (over 3 years ago)
- Last Synced: 2025-01-18T15:30:44.843Z (about 1 year ago)
- Topics: gapi, google-tasks, google-tasks-api, typescript
- Language: TypeScript
- Size: 10.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Google Tasks API TypeScript Example
Very basic (and sometimes ugly) but working example of Google Tasks API usage in TypeScript for Browser
## Instructions:
1. `git clone https://github.com/Maxim-Mazurok/google-tasks-api-ts-example`
1. `cd google-tasks-api-ts-example`
1. `npm install`
1. Get Client ID and API key: [instructions](https://developers.google.com/tasks/quickstart/js#step_1_turn_on_the)
1. Set `CLIENT_ID` and `API_KEY` in [src/index.ts](src/index.ts)
1. Run `npm run compile` to compile TS to JS (`index.js` should appear in `dist` folder)
1. Start your server (using `https-serve` + edit `hosts` file, or `ngrok`)
1. Authorize, and you'll see your TaskLists as well as Tasks within those TaskLists
## Troubleshooting:
- Always look in the browser console for errors
- Make sure that you're serving via https (using `https-serve` + edit `hosts` file, or `ngrok`)
- Make sure that your domain is added in Google developer console
- You can open issue here if you need help