Anyone have to get a shot to stop contractions?

Ashley
Hi just wondering if anyone has some inside info on this topic. I was 35 weeks pregnant yesterday and had to receive a shot to stop contractions. I felt crampy and some pressure on pelvic over Easter weekend. Went to Dr. They said i was thinning out and gave me the shot. Did this happen to any of you ladies? If so how long after did you deliver?