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))
评论列表
文章目录