Esempio n. 1
0
def workflow(service, config):
    """Calls all possible Accounttax methods on the configured account.

  Args:
    service: The service object used to access the Content API.
    config: The samples configuration as a Python dictionary.
  """

    print('Performing the Accounttax workflow.')
    print()

    common_workflow(service, config)
    if common.is_mca(config):
        mca_workflow(service, config)

    print('Done with Accounttax workflow.')
Esempio n. 2
0
def workflow(service, config):
  """Calls all possible Datafeeds methods on the configured account.

  Args:
    service: The service object used to access the Content API.
    config: The samples configuration as a Python dictionary.
  """

  print('Performing the Datafeeds workflow.')
  print()

  if common.is_mca(config):
    print('Nothing to do, as MCAs contain no datafeeds.\n')
  else:
    non_mca_workflow(service, config)

  print('Done with Datafeeds workflow.')