mirror of
https://github.com/TurTaskProject/TurTaskWeb.git
synced 2025-12-19 14:04:07 +01:00
8 lines
278 B
Python
8 lines
278 B
Python
from googleapiclient.discovery import build
|
|
|
|
from authentications.access_token_cache import get_credential_from_cache_token
|
|
|
|
|
|
def get_service(request):
|
|
credentials = get_credential_from_cache_token(request.user.id)
|
|
return build('calendar', 'v3', credentials=credentials) |