rozsireni
This commit is contained in:
@@ -14,6 +14,15 @@ Node.js TypeScript sluzba pro komunikaci s Google API za AppFactory reverse prox
|
||||
- `POST /google/oauth/service-account-token`
|
||||
- `POST /google/oauth/revoke`
|
||||
- `GET /google/oauth/tokeninfo`
|
||||
- `GET|POST|PATCH|DELETE /google/calendar/...`
|
||||
- `GET|POST|PUT /google/sheets/...`
|
||||
- `GET|POST|PATCH|DELETE /google/drive/...`
|
||||
- `GET|POST /google/gmail/...`
|
||||
- `GET|POST /google/docs/...`
|
||||
- `GET|POST /google/slides/...`
|
||||
- `GET|POST /google/forms/...`
|
||||
- `GET|POST|PATCH|DELETE /google/people/...`
|
||||
- `GET|POST|PATCH|DELETE /google/tasks/...`
|
||||
- `POST /google/request`
|
||||
|
||||
## Konfigurace
|
||||
@@ -50,3 +59,46 @@ Priklad:
|
||||
"accessTokenEnv": "GOOGLE_ACCESS_TOKEN"
|
||||
}
|
||||
```
|
||||
|
||||
## Konkretni Google API wrappery
|
||||
|
||||
Sluzba ma konkretni endpointy pro bezne Google produkty, aby klient nemusel skladat cilove Google URL sam:
|
||||
|
||||
- Calendar: kalendare, eventy, presun eventu
|
||||
- Sheets: spreadsheet metadata, batch update, cteni hodnot, update hodnot, append, batch clear
|
||||
- Drive: soubory, export, opravneni
|
||||
- Gmail: profil, zpravy, odeslani zpravy, labels
|
||||
- Docs: vytvoreni dokumentu, nacteni dokumentu, batch update
|
||||
- Slides: vytvoreni prezentace, nacteni prezentace, batch update
|
||||
- Forms: vytvoreni formulare, nacteni formulare, batch update, responses
|
||||
- People: connections, kontakt, vytvoreni/uprava/smazani kontaktu
|
||||
- Tasks: task lists, tasky, uprava/smazani tasku
|
||||
|
||||
Autorizace je stejna jako u obecne proxy: `Authorization: Bearer <token>`, pripadne `accessToken`, `accessTokenEnv`, `apiKey` nebo `apiKeyEnv` v JSON body.
|
||||
|
||||
Priklad vytvoreni udalosti:
|
||||
|
||||
```json
|
||||
POST /google/calendar/calendars/primary/events
|
||||
{
|
||||
"summary": "Schuzka",
|
||||
"start": {
|
||||
"dateTime": "2026-06-15T10:00:00+02:00"
|
||||
},
|
||||
"end": {
|
||||
"dateTime": "2026-06-15T11:00:00+02:00"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Priklad append do Google Sheets:
|
||||
|
||||
```json
|
||||
POST /google/sheets/spreadsheets/{spreadsheetId}/values/append?range=Sheet1!A1
|
||||
{
|
||||
"majorDimension": "ROWS",
|
||||
"values": [
|
||||
["A", "B", "C"]
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user