rest_api.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:Orator-Google-App-Engine 作者: MakarenaLabs 项目源码 文件源码
def _make_token_async(scopes, service_account_id):
  """Get a fresh authentication token.

  Args:
    scopes: A list of scopes.
    service_account_id: Internal-use only.

  Raises:
    An ndb.Return with a tuple (token, expiration_time) where expiration_time is
    seconds since the epoch.
  """
  rpc = app_identity.create_rpc()
  app_identity.make_get_access_token_call(rpc, scopes, service_account_id)
  token, expires_at = yield rpc
  raise ndb.Return((token, expires_at))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号