Ejemplo n.º 1
0
def workflow(service, config):
  """Calls all possible Shippingsettings 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 Shippingsettings workflow.')
  print()

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

  print('Done with Shippingsettings workflow.')
def workflow(service, config):
    """Calls all possible Products 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 Products workflow.')
    print()

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

    print('Done with Products workflow.')
def workflow(service, config):
  """Calls all possible Products 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 Products workflow.')
  print()

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

  print('Done with Products workflow.')