gam.py 文件源码

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

项目:GAMADV-X 作者: taers232c 项目源码 文件源码
def doInfoResoldCustomer():
  res = buildGAPIObject(API.RESELLER)
  customerId = getString(Cmd.OB_CUSTOMER_ID)
  checkForExtraneousArguments()
  try:
    customerInfo = callGAPI(res.customers(), u'get',
                            throw_reasons=[GAPI.BAD_REQUEST, GAPI.RESOURCE_NOT_FOUND, GAPI.FORBIDDEN],
                            customerId=customerId)
    printKeyValueList([u'Customer ID', customerInfo[u'customerId']])
    printKeyValueList([u'Customer Domain', customerInfo[u'customerDomain']])
    printKeyValueList([u'Customer Domain Verified', customerInfo[u'customerDomainVerified']])
    _showCustomerAddressPhoneNumber(customerInfo)
    printKeyValueList([u'Customer Alternate Email', customerInfo[u'alternateEmail']])
    printKeyValueList([u'Customer Admin Console URL', customerInfo[u'resourceUiUrl']])
  except (GAPI.badRequest, GAPI.resourceNotFound, GAPI.forbidden) as e:
    entityActionFailedWarning([Ent.CUSTOMER_ID, customerId], str(e))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号