Sha256: f13c6cfd099784757a6f0d50efb2cbc4c1012abffaf22f9085523c735468fc95
Contents?: true
Size: 548 Bytes
Versions: 11
Compression:
Stored size: 548 Bytes
Contents
#!/usr/bin/env python # python 2.x import sys from oauth2client.service_account import ServiceAccountCredentials def print_access_token(): argv = sys.argv if (len(argv) < 1): print >> sys.stderr, 'a filepath to service-account.json must be specified as the 1st argument.' quit() credentials = ServiceAccountCredentials.from_json_keyfile_name( argv[1], ['https://www.googleapis.com/auth/firebase.remoteconfig']) access_token_info = credentials.get_access_token() print(access_token_info.access_token) print_access_token()
Version data entries
11 entries across 11 versions & 1 rubygems