docs: def _get_client_secret(client, service_id):
      """
      Get client secret for service
      :param client: Accounts Service API Client
      :param service_id: Service ID
      :return: Client secret (if available)
      """
      try:
          response = client.accounts.services[service_id].secrets.get()
      except httpclient.HTTPError as exc:
          if exc.code == 404:
              # If error is a 404 then this means the service_id is not recognised. Raise this error immediately
              msg = ('Service {} cannot be found.'.format(service_id))
              raise click.ClickException(click.style(msg, fg='red'))
          else:
              raise exc
  
      client_secrets = response['data']
      if client_secrets:
          return client_secrets[0]
      return None