From history it seems that you might be having stomach virus giving rise to spasmodic stomach pain and due to pain you got all other symptoms like sweating etc.
As now you are alright, no medicine required.
If pain is there, take antispasmodic tablet like Dicyclomine
Take light diet.
Take plenty of water.
Ok and take care.