How can I get a 4-year-old to take antibiotics?

How to get a 4 year old to take antibiotics or else she’ll have to get a shot. It’s for strept and a ear infection.