def _IssueTokensRequestForUser(self, request):
    backoff = http_utils.Backoff()
    while backoff.Loop():
      try:
        return request.execute()
      except apiclient_errors.HttpError as e:
        # 404 is returned from get when no tokens for client_id exist.
        # This is normal and should not be presented to the user as an error.
        if request.method != 'DELETE' and e.resp.status == 404:
          return {}
        if e.resp.status not in http_utils.RETRY_RESPONSE_CODES:
          raise admin_api_tool_errors.AdminAPIToolUserError(
              '%s\nPlease check your domain spelling.'
              % http_utils.ParseHttpResult(e.uri, e.resp, e.content))
        log_utils.LogInfo('Possible quota problem with %s tokens (%d).' %
                          (request.methodId, e.resp.status))
        backoff.Fail()
Create and issue a tokens request authorized by the user.
dataset/ETHPy150Open google/gfw-toolkit/toolkit/admin_sdk_directory_api/tokens_api.py/TokensApiWrapper._IssueTokensRequestForUser