MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / get_service

Function get_service

api/app_analytics/query.py:12–22  ·  view source on GitHub ↗

Get the google service object to use to query the API

()

Source from the content-addressed store, hash-verified

10
11
12def get_service(): # type: ignore[no-untyped-def]
13 """
14 Get the google service object to use to query the API
15 """
16 credentials = service_account.Credentials.from_service_account_info( # type: ignore[no-untyped-call]
17 json.loads(settings.GOOGLE_SERVICE_ACCOUNT), # type: ignore[arg-type]
18 scopes=GA_SCOPES,
19 )
20
21 # Build the service object.
22 return build(GA_API_NAME, GA_API_VERSION, credentials=credentials)
23
24
25def get_events_for_organisation(organisation): # type: ignore[no-untyped-def]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…