Move publicMessage function to yammerApi