Please help this is important

My dog accidentally ate a whole can of peas and now she's crying (like a screaming), her stomach is really hard, she's trying to throw up or she's panting, I think she's in danger please help I'm desperate. She's all I have and I love her so much I don't want anything to happen.